Prefix notices with [#chan]

This commit is contained in:
Juhani Krekelä 2019-05-06 14:50:35 +03:00
parent 61a2fdd095
commit 91bea13796
1 changed files with 2 additions and 2 deletions

View File

@ -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()