mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Forgot to map(len, L).
This commit is contained in:
parent
7f21380417
commit
ea7a319157
@ -210,7 +210,7 @@ class Notes(callbacks.Privmsg):
|
|||||||
L.append(r'#%s from %s' % (id, sender))
|
L.append(r'#%s from %s' % (id, sender))
|
||||||
else:
|
else:
|
||||||
L.append(r'#%s (private)' % id)
|
L.append(r'#%s (private)' % id)
|
||||||
while reduce(operator.add, L) + 2*len(L) > 400:
|
while reduce(operator.add, map(len, L)) + 2*len(L) > 400:
|
||||||
L.pop()
|
L.pop()
|
||||||
irc.reply(msg, ', '.join(L))
|
irc.reply(msg, ', '.join(L))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user