diff options
author | LemonBoy <thatlemon@gmail.com> | 2015-05-15 16:42:51 +0200 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2015-05-15 17:07:30 +0200 |
commit | 16c71cf1fbc1e7987fdde821813005b87237e951 (patch) | |
tree | d5af65015c8f3acd5c9c0fe3ac3d8950ebf85637 /src/irc/flood/flood.c | |
parent | c122a2a226363114e11f32072395e2f06ad6a450 (diff) | |
download | irssi-16c71cf1fbc1e7987fdde821813005b87237e951.zip |
Implement CHANTYPES support
Diffstat (limited to 'src/irc/flood/flood.c')
-rw-r--r-- | src/irc/flood/flood.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/flood/flood.c b/src/irc/flood/flood.c index 29502ca6..0944a6eb 100644 --- a/src/irc/flood/flood.c +++ b/src/irc/flood/flood.c @@ -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); } |