mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-22 02:32:42 +01:00
Forgot to have a case for a disabled channel :)
This commit is contained in:
parent
74e4299636
commit
1e56f0df7e
@ -76,6 +76,8 @@ class Protector(callbacks.Plugin):
|
||||
ignore('no msg.args')
|
||||
elif not irc.isChannel(msg.args[0]):
|
||||
ignore('not on a channel')
|
||||
elif not self.registryValue('enable', msg.args[0]):
|
||||
ignore('supybot.plugins.Protector.enable is False.')
|
||||
elif msg.args[0] not in irc.state.channels:
|
||||
# One has to wonder how this would happen, but just in case...
|
||||
ignore('bot isn\'t in channel')
|
||||
|
Loading…
Reference in New Issue
Block a user