mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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))
|
||||
else:
|
||||
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()
|
||||
irc.reply(msg, ', '.join(L))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user