From f6461699f6a56acaebba22d0359664e6047d1a53 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 26 Oct 2004 23:01:11 +0000 Subject: [PATCH] Converted to commands.py. --- plugins/OSU.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/OSU.py b/plugins/OSU.py index 43241c524..8b818c7b1 100644 --- a/plugins/OSU.py +++ b/plugins/OSU.py @@ -37,7 +37,7 @@ __revision__ = "$Id$" import supybot.plugins as plugins import supybot.utils as utils -import supybot.privmsgs as privmsgs +from supybot.commands import * import supybot.webutils as webutils import supybot.callbacks as callbacks @@ -248,19 +248,19 @@ class OSU(callbacks.Privmsg): irc.reply('Possible matches: %s.' % ', '.join(emails)) except Exception, e: irc.error(utils.exnToString(e)) - email = privmsgs.thread(email) + email = thread(email) - def building(self, irc, msg, args): + def building(self, irc, msg, args, building): """ Returns the address and full name of an OSU building based on its standard two-letter abbreviation. """ - building = privmsgs.getArgs(args) try: irc.reply(buildings[building.upper()]) except KeyError: irc.reply('I don\'t know of any such OSU building.') + building = wrap(building, ['something']) Class = OSU