mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
MessageParser: Fix crash when using @messageparser add for global database.
This commit is contained in:
parent
23dfa23f31
commit
33cc9bc6b8
@ -138,7 +138,9 @@ class MessageParser(callbacks.Plugin, plugins.ChannelDBHandler):
|
||||
if capabilities:
|
||||
for capability in re.split(r'\s*;\s*', capabilities):
|
||||
if capability.startswith('channel,'):
|
||||
capability = ircdb.makeChannelCapability(channel, capability[8:])
|
||||
capability = capability[8:]
|
||||
if channel != 'global':
|
||||
capability = ircdb.makeChannelCapability(channel, capability)
|
||||
if capability and ircdb.checkCapability(msg.prefix, capability):
|
||||
#print "has capability:", capability
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user