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/core/bans.c | |
parent | c122a2a226363114e11f32072395e2f06ad6a450 (diff) | |
download | irssi-16c71cf1fbc1e7987fdde821813005b87237e951.zip |
Implement CHANTYPES support
Diffstat (limited to 'src/irc/core/bans.c')
-rw-r--r-- | src/irc/core/bans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/bans.c b/src/irc/core/bans.c index b60e681b..68dd45c0 100644 --- a/src/irc/core/bans.c +++ b/src/irc/core/bans.c @@ -186,7 +186,7 @@ static void command_set_ban(const char *data, IRC_SERVER_REC *server, if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_OPTCHAN | PARAM_FLAG_GETREST, item, &channel, &nicks)) return; - if (!ischannel(*channel)) cmd_param_error(CMDERR_NOT_JOINED); + if (!server_ischannel(SERVER(server), channel)) cmd_param_error(CMDERR_NOT_JOINED); if (*nicks == '\0') { if (g_strcmp0(data, "*") != 0) cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); |