Forgot to have a case for a disabled channel :)

This commit is contained in:
Jeremy Fincher 2005-02-24 09:54:48 +00:00
parent 74e4299636
commit 1e56f0df7e
1 changed files with 2 additions and 0 deletions

View File

@ -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')