From 8a98fe66f46418efda366dce57120f5a04e83818 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 2 Oct 2004 02:22:25 +0000 Subject: [PATCH] Updated slightly. --- plugins/Success.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/Success.py b/plugins/Success.py index df2166c66..51c723c6c 100644 --- a/plugins/Success.py +++ b/plugins/Success.py @@ -151,7 +151,7 @@ class Success(callbacks.Privmsg): irc.replySuccess() except KeyError: irc.error('No success has id #%s.' % id) - remove = wrap(remove, ['channeldb', 'id', 'user']) + remove = wrap(remove, ['channeldb', ('id', 'success'), 'user']) def search(self, irc, msg, args, channel, text): """[] @@ -186,9 +186,9 @@ class Success(callbacks.Privmsg): (id, success.text, name, timeStr)) except KeyError: irc.error('No success found with that id.') - get = wrap(get, ['channeldb', 'id']) + get = wrap(get, ['channeldb', ('id', 'success')]) - def change(self, irc, msg, args, channel, id, replacer, user): + def change(self, irc, msg, args, user, channel, id, replacer): """[] Alters the success with the given id according to the provided regexp. @@ -200,7 +200,8 @@ class Success(callbacks.Privmsg): irc.replySuccess() except KeyError: irc.error('There is no success #%s.' % id) - change = wrap(change, ['channeldb', 'id', 'regexpReplacer', 'user']) + change = wrap(change, ['user', 'channeldb', + ('id', 'success'), 'regexpReplacer']) def stats(self, irc, msg, args, channel):