diff --git a/nardco.py b/nardco.py index 81efec7378b6817016927175bc9234eeba7fd5a4..0285a5151ace6fc207668641026c7b5030605144 100755 --- a/nardco.py +++ b/nardco.py @@ -268,12 +268,13 @@ class Boooob(ircbot.SingleServerIRCBot): if "di" in message : splt = message.split('di') + messages = [] if len(splt) > 1 : - reponse = splt[1] - if reponse[0:1] == "s " : - reponse = reponse[2:] + for f in len(splt[1:]) : + messages.append(splt[f:].join('di')) - serv.privmsg(canal, reponse) + for f in messages : + serv.privmsg(canal, f) # REDDIT // A COMPLETER if isCommande(message):