mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-04 17:09:24 +01:00
Updated slightly.
This commit is contained in:
parent
0e3f7fe527
commit
8a98fe66f4
@ -151,7 +151,7 @@ class Success(callbacks.Privmsg):
|
|||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
irc.error('No success has id #%s.' % id)
|
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):
|
def search(self, irc, msg, args, channel, text):
|
||||||
"""[<channel>] <text>
|
"""[<channel>] <text>
|
||||||
@ -186,9 +186,9 @@ class Success(callbacks.Privmsg):
|
|||||||
(id, success.text, name, timeStr))
|
(id, success.text, name, timeStr))
|
||||||
except KeyError:
|
except KeyError:
|
||||||
irc.error('No success found with that id.')
|
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>
|
"""[<channel>] <id> <regexp>
|
||||||
|
|
||||||
Alters the success with the given id according to the provided regexp.
|
Alters the success with the given id according to the provided regexp.
|
||||||
@ -200,7 +200,8 @@ class Success(callbacks.Privmsg):
|
|||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
irc.error('There is no success #%s.' % id)
|
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):
|
def stats(self, irc, msg, args, channel):
|
||||||
|
Loading…
Reference in New Issue
Block a user