diff --git a/nardco.py b/nardco.py index 243885244b54866a2f1b8cbecf9a3aaeffa9ce96..0f2d20cd78a194536b6f6b0a66bd0e45b983ed3f 100755 --- a/nardco.py +++ b/nardco.py @@ -260,11 +260,17 @@ class Boooob(ircbot.SingleServerIRCBot): dead = cleanlist[len(liste)//2 + 1 :] pp = dead[random.randint(0,len(dead) - 1)] ts = live[random.randint(0,len(live) - 1)] - serv.nick('{0}{1}_'.format(pp[0],pp[2:] )) - serv.privmsg(canal, "I don't feel so good mr {0}{1}".format(ts[0],ts[2:])) + serv.nick('{0}{1}_'.format(pp)) + serv.privmsg(canal, "I don't feel so good mr {0}".format(ts)) serv.nick('nardco') - serv.privmsg(canal, "Vivants : {0}".format(", ".join(live) )) - serv.privmsg(canal, "Morts : {0}".format(", ".join(dead) )) + live_ = [] + dead_ = [] + for f in live : + live_.append(no_hl(f)) + for f in dead : + dead_.append(no_hl(f)) + serv.privmsg(canal, "Vivants : {0}".format(", ".join(live_) )) + serv.privmsg(canal, "Morts : {0}".format(", ".join(dead_) )) #serv.mode(canal, "+" + len(live)*'v' + " "+" ".join(live)) #serv.mode(canal, "+m")