From 0e505d89e1b48639ad454327851e842dcac3dba6 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 20 Apr 2003 00:47:04 +0000 Subject: [PATCH] Some more .__class__.__name__ -> name() conversions. --- src/MiscCommands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MiscCommands.py b/src/MiscCommands.py index c8f2e231f..111e002e8 100755 --- a/src/MiscCommands.py +++ b/src/MiscCommands.py @@ -59,7 +59,7 @@ class MiscCommands(callbacks.Privmsg): else: for cb in irc.callbacks: cls = cb.__class__ - if cls.__name__.lower().startswith(name) and \ + if cls.name().lower().startswith(name) and \ not issubclass(cls, callbacks.PrivmsgRegexp) and \ issubclass(cls, callbacks.Privmsg): commands = [x for x in cls.__dict__ @@ -192,7 +192,7 @@ class MiscCommands(callbacks.Privmsg): command = privmsgs.getArgs(args) Class = irc.findCallback(command) if Class is not None: - irc.reply(msg, Class.__class__.__name__) + irc.reply(msg, Class.name()) else: irc.error(msg, 'There is no such command %s' % command)