mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +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:
|
||||
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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user