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: else:
irc.error(msg,'Possible values for revenge are "True" and "False"') irc.error(msg,'Possible values for revenge are "True" and "False"')
return return
for channel in irc.state.channels:
irc.queueMsg(ircmsgs.topic(channel))
irc.reply(msg, conf.replySuccess) irc.reply(msg, conf.replySuccess)
startenforcer = privmsgs.checkCapability(startenforcer, 'admin') startenforcer = privmsgs.checkCapability(startenforcer, 'admin')