forked from nortti/tea_cah
Prefix notices with [#chan]
This commit is contained in:
parent
61a2fdd095
commit
91bea13796
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue