mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Implement CHANTYPES support
This commit is contained in:
parent
c122a2a226
commit
16c71cf1fb
23 changed files with 57 additions and 55 deletions
|
|
@ -250,7 +250,7 @@ static void flood_privmsg(IRC_SERVER_REC *server, const char *data,
|
|||
|
||||
params = event_get_params(data, 2, &target, &text);
|
||||
|
||||
level = ischannel(*target) ? MSGLEVEL_PUBLIC : MSGLEVEL_MSGS;
|
||||
level = server_ischannel(SERVER(server), target) ? MSGLEVEL_PUBLIC : MSGLEVEL_MSGS;
|
||||
if (addr != NULL && !ignore_check(SERVER(server), nick, addr, target, text, level))
|
||||
flood_newmsg(server, level, nick, addr, target);
|
||||
|
||||
|
|
@ -287,7 +287,7 @@ static void flood_ctcp(IRC_SERVER_REC *server, const char *data,
|
|||
return;
|
||||
|
||||
level = g_ascii_strncasecmp(data, "ACTION ", 7) != 0 ? MSGLEVEL_CTCPS :
|
||||
(ischannel(*target) ? MSGLEVEL_PUBLIC : MSGLEVEL_MSGS);
|
||||
(server_ischannel(SERVER(server), target) ? MSGLEVEL_PUBLIC : MSGLEVEL_MSGS);
|
||||
if (!ignore_check(SERVER(server), nick, addr, target, data, level))
|
||||
flood_newmsg(server, level, nick, addr, target);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue