mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
many('text') => many('something') since we don't want to combineRest. Also,
fix a mistyped variable name.
This commit is contained in:
parent
df0b661d92
commit
4c6ad94435
@ -286,11 +286,11 @@ class Factoids(callbacks.Privmsg):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
name = msg.nick
|
name = msg.nick
|
||||||
try:
|
try:
|
||||||
self.db.add(channel, key, factoid, nick)
|
self.db.add(channel, key, factoid, name)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
except LockError:
|
except LockError:
|
||||||
irc.error('That factoid is locked.')
|
irc.error('That factoid is locked.')
|
||||||
learn = wrap(learn, ['channeldb', many('text')])
|
learn = wrap(learn, ['channeldb', many('something')])
|
||||||
|
|
||||||
def _replyFactoids(self, irc, channel, key, factoids, number=0, error=True):
|
def _replyFactoids(self, irc, channel, key, factoids, number=0, error=True):
|
||||||
if factoids:
|
if factoids:
|
||||||
|
Loading…
Reference in New Issue
Block a user