Made Enforcer send an empty TOPIC to each channel when startenforcer is called so there is no exception when self.topics is empty.

This commit is contained in:
Jeremy Fincher 2003-09-06 02:03:44 +00:00
parent 3eb86b8869
commit 5974639ee3

View File

@ -72,6 +72,8 @@ class Enforcer(callbacks.Privmsg):
else:
irc.error(msg,'Possible values for revenge are "True" and "False"')
return
for channel in irc.state.channels:
irc.queueMsg(ircmsgs.topic(channel))
irc.reply(msg, conf.replySuccess)
startenforcer = privmsgs.checkCapability(startenforcer, 'admin')