diff --git a/botcmd.py b/botcmd.py index f88eabe..9946435 100644 --- a/botcmd.py +++ b/botcmd.py @@ -44,7 +44,7 @@ class GameLoop(threading.Thread): line_len = 0 for part in message_parts: if len(part) + line_len > 440: - self.irc.send_raw(b'NOTICE %s :%s' % (recipient, b' '.join(line))) + self.irc.send_raw(b'NOTICE %s :[%s] %s' % (recipient, self.irc_chan, b' '.join(line))) line = [] line_len = 0 @@ -52,7 +52,7 @@ class GameLoop(threading.Thread): line_len += len(part) + 1 if len(line) > 0: - self.irc.send_raw(b'NOTICE %s :%s' % (recipient, b' '.join(line))) + self.irc.send_raw(b'NOTICE %s :[%s] %s' % (recipient, self.irc_chan, b' '.join(line))) def get_event(self): event = self.chan.recv()