bug liste

This commit is contained in:
nemesis 2018-06-13 22:49:48 +02:00
parent 97cb0c3b4d
commit f9b559ca9c

View file

@ -600,7 +600,7 @@ def liste(room, event):
if (nb <= len(list)): if (nb <= len(list)):
for i in range(nb): for i in range(nb):
id = random.randrange(0,len(list)) id = random.randrange(0,len(list))
res.append(list.pop(list[id])) res.append(list.pop(id))
room.send_text(nick + "obtient :\n" + '\n'.join(res)) room.send_text(nick + "obtient :\n" + '\n'.join(res))
else: else:
room.send_text("Utilisation : !liste <options/de/la/liste> [nombre d elements]") room.send_text("Utilisation : !liste <options/de/la/liste> [nombre d elements]")