From 7c9438c1727b4eadd2ca9aeed07a9162ff686731 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 12 Jun 2001 00:08:14 +0000 Subject: channel_set_singlemode() : don't do anything if you're not channel op/halfop git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1555 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/bans.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/irc/core/bans.c') diff --git a/src/irc/core/bans.c b/src/irc/core/bans.c index 96fe0673..0140cc75 100644 --- a/src/irc/core/bans.c +++ b/src/irc/core/bans.c @@ -107,8 +107,7 @@ void ban_set(IRC_CHANNEL_REC *channel, const char *bans, int ban_type) ban_type = default_ban_type; masks = ban_get_masks(channel, bans, ban_type); - channel_set_singlemode(channel->server, channel->name, - masks, "+b"); + channel_set_singlemode(channel, masks, "+b"); g_free(masks); } @@ -145,8 +144,7 @@ void ban_remove(IRC_CHANNEL_REC *channel, const char *bans) g_strfreev(banlist); if (str->len > 0) - channel_set_singlemode(channel->server, channel->name, - str->str, "-b"); + channel_set_singlemode(channel, str->str, "-b"); g_string_free(str, TRUE); } -- cgit v1.2.3