Updated slightly.

This commit is contained in:
Jeremy Fincher 2004-10-02 02:22:25 +00:00
parent 0e3f7fe527
commit 8a98fe66f4
1 changed files with 5 additions and 4 deletions

View File

@ -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):
"""[<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):
"""[<channel>] <id> <regexp>
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):