Fixed bug in list, was using .startswith instead of == for the plugin name.

This commit is contained in:
Jeremy Fincher 2003-10-20 05:56:14 +00:00
parent 3fb2795668
commit 1ddc5195d4

View File

@ -111,7 +111,7 @@ class MiscCommands(callbacks.Privmsg):
else:
for cb in irc.callbacks:
cls = cb.__class__
if cb.name().lower().startswith(name) and \
if cb.name().lower() == name and \
not issubclass(cls, callbacks.PrivmsgRegexp) and \
issubclass(cls, callbacks.Privmsg):
commands = [x for x in dir(cls)