From c8da4ad913d2a053831a551a5bc4f2c65453bd9b Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 9 Dec 2003 04:49:39 +0000 Subject: [PATCH] Removed a conf.replySuccess where one isn't needed (in unban). --- src/Channel.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Channel.py b/src/Channel.py index 1927d04cf..64b6f5aa6 100755 --- a/src/Channel.py +++ b/src/Channel.py @@ -239,7 +239,6 @@ class Channel(callbacks.Privmsg): hostmask = privmsgs.getArgs(args) if irc.nick in irc.state.channels[channel].ops: irc.queueMsg(ircmsgs.unban(channel, hostmask)) - irc.reply(msg, conf.replySuccess) else: irc.error(msg, 'How can I unban someone? I\'m not opped.') unban = privmsgs.checkChannelCapability(unban, 'op') @@ -252,7 +251,9 @@ class Channel(callbacks.Privmsg): channel. is only necessary if the message isn't sent in the channel itself. """ - ircdb.channels.getChannel(channel).lobotomized = True + c = ircdb.channels.getChannel(channel) + c.lobotomized = True + ircdb.channels.setChannel(channel, c) irc.reply(msg, conf.replySuccess) lobotomize = privmsgs.checkChannelCapability(lobotomize, 'op') @@ -264,7 +265,9 @@ class Channel(callbacks.Privmsg): is only necessary if the message isn't sent in the channel itself. """ - ircdb.channels.getChannel(channel).lobotomized = False + c = ircdb.channels.getChannel(channel) + c.lobotomized = False + ircdb.channels.setChannel(channel, c) irc.reply(msg, conf.replySuccess) unlobotomize = privmsgs.checkChannelCapability(unlobotomize, 'op')