From 91bea13796143a6fce713cdb697f87f6c05d4613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Mon, 6 May 2019 14:50:35 +0300 Subject: [PATCH] Prefix notices with [#chan] --- botcmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()