mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
plugins/Channel: Make disable/enable work again.
This commit is contained in:
parent
d26f9b1405
commit
106fbc6eea
@ -705,7 +705,7 @@ class Channel(callbacks.Plugin):
|
|||||||
'called %s.', plugin.name(), command)
|
'called %s.', plugin.name(), command)
|
||||||
elif command:
|
elif command:
|
||||||
# findCallbackForCommand
|
# findCallbackForCommand
|
||||||
if irc.findCallbackForCommand(command):
|
if filter(None, irc.findCallbacksForArgs([command])):
|
||||||
s = '-%s' % command
|
s = '-%s' % command
|
||||||
else:
|
else:
|
||||||
failMsg = format('No plugin or command named %s could be '
|
failMsg = format('No plugin or command named %s could be '
|
||||||
@ -743,7 +743,7 @@ class Channel(callbacks.Plugin):
|
|||||||
'called %s.', plugin.name(), command)
|
'called %s.', plugin.name(), command)
|
||||||
elif command:
|
elif command:
|
||||||
# findCallbackForCommand
|
# findCallbackForCommand
|
||||||
if irc.findCallbackForCommand(command):
|
if filter(None, irc.findCallbacksForArgs([command])):
|
||||||
s = '-%s' % command
|
s = '-%s' % command
|
||||||
else:
|
else:
|
||||||
failMsg = format('No plugin or command named %s could be '
|
failMsg = format('No plugin or command named %s could be '
|
||||||
|
@ -159,7 +159,8 @@ class ChannelTestCase(ChannelPluginTestCase):
|
|||||||
## self.assertBan('kban --user foobar', '*!user@*')
|
## self.assertBan('kban --user foobar', '*!user@*')
|
||||||
## self.assertBan('kban --nick foobar', 'foobar!*@*')
|
## self.assertBan('kban --nick foobar', 'foobar!*@*')
|
||||||
## self.assertBan('kban --nick --user foobar', 'foobar!user@*')
|
## self.assertBan('kban --nick --user foobar', 'foobar!user@*')
|
||||||
## self.assertBan('kban --nick --host foobar', 'foobar!*@host.domain.tld')
|
## self.assertBan('kban --nick --host foobar',
|
||||||
|
## 'foobar!*@host.domain.tld')
|
||||||
## self.assertBan('kban --user --host foobar', '*!user@host.domain.tld')
|
## self.assertBan('kban --user --host foobar', '*!user@host.domain.tld')
|
||||||
## self.assertBan('kban --nick --user --host foobar',
|
## self.assertBan('kban --nick --user --host foobar',
|
||||||
## 'foobar!user@host.domain.tld')
|
## 'foobar!user@host.domain.tld')
|
||||||
|
Loading…
Reference in New Issue
Block a user