mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +01:00
Changed utils.shrinkList to ircutils.shrinkList.
This commit is contained in:
parent
0aa5ece16a
commit
4f094a2e83
@ -236,10 +236,10 @@ class Notes(callbacks.Privmsg):
|
|||||||
else:
|
else:
|
||||||
L.append(r'#%s (private)' % id)
|
L.append(r'#%s (private)' % id)
|
||||||
if more:
|
if more:
|
||||||
utils.shrinkList(L, ', ', 400)
|
ircutils.shrinkList(L, ', ', 400)
|
||||||
L.append('and even more notes.')
|
L.append('and even more notes.')
|
||||||
else:
|
else:
|
||||||
utils.shrinkList(L, ', ', 450)
|
ircutils.shrinkList(L, ', ', 450)
|
||||||
irc.reply(msg, ', '.join(L))
|
irc.reply(msg, ', '.join(L))
|
||||||
|
|
||||||
def oldnotes(self, irc, msg, args):
|
def oldnotes(self, irc, msg, args):
|
||||||
@ -262,7 +262,7 @@ class Notes(callbacks.Privmsg):
|
|||||||
else:
|
else:
|
||||||
ids = [str(t[0]) for t in cursor.fetchall()]
|
ids = [str(t[0]) for t in cursor.fetchall()]
|
||||||
ids.reverse()
|
ids.reverse()
|
||||||
utils.shrinkList(ids, ', ', 425)
|
ircutils.shrinkList(ids, ', ', 425)
|
||||||
ids.reverse()
|
ids.reverse()
|
||||||
irc.reply(msg, ', '.join(ids))
|
irc.reply(msg, ', '.join(ids))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user