mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
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:
parent
3eb86b8869
commit
5974639ee3
@ -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')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user