diff --git a/DrBotIRC.py b/DrBotIRC.py index c302845..d634ca4 100644 --- a/DrBotIRC.py +++ b/DrBotIRC.py @@ -123,11 +123,15 @@ class DrBotIRC(irclib.IRC): """ h = self.handlers + replies = [] + event._target = None for handler in h.get("all_events", []) + h.get(event.eventtype(), []): ret = handler[1](connection, event) if ret: - event.arguments()[0] = ret + replies.append(ret) + if len(replies): + event.arguments()[0] = '\n'.join(replies) def on_pubmsg(self, connection, event): """See if there is an alias ("!command") in the text, and if so, translate it into