Prefix notices with [#chan]
This commit is contained in:
parent
61a2fdd095
commit
91bea13796
|
@ -44,7 +44,7 @@ class GameLoop(threading.Thread):
|
||||||
line_len = 0
|
line_len = 0
|
||||||
for part in message_parts:
|
for part in message_parts:
|
||||||
if len(part) + line_len > 440:
|
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 = []
|
||||||
line_len = 0
|
line_len = 0
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class GameLoop(threading.Thread):
|
||||||
line_len += len(part) + 1
|
line_len += len(part) + 1
|
||||||
|
|
||||||
if len(line) > 0:
|
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):
|
def get_event(self):
|
||||||
event = self.chan.recv()
|
event = self.chan.recv()
|
||||||
|
|
Loading…
Reference in New Issue