mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Fixed bug in list, was using .startswith instead of == for the plugin name.
This commit is contained in:
parent
3fb2795668
commit
1ddc5195d4
@ -111,7 +111,7 @@ class MiscCommands(callbacks.Privmsg):
|
|||||||
else:
|
else:
|
||||||
for cb in irc.callbacks:
|
for cb in irc.callbacks:
|
||||||
cls = cb.__class__
|
cls = cb.__class__
|
||||||
if cb.name().lower().startswith(name) and \
|
if cb.name().lower() == name and \
|
||||||
not issubclass(cls, callbacks.PrivmsgRegexp) and \
|
not issubclass(cls, callbacks.PrivmsgRegexp) and \
|
||||||
issubclass(cls, callbacks.Privmsg):
|
issubclass(cls, callbacks.Privmsg):
|
||||||
commands = [x for x in dir(cls)
|
commands = [x for x in dir(cls)
|
||||||
|
Loading…
Reference in New Issue
Block a user