Can pass data from message reception to message response

This commit is contained in:
Némunaire 2012-08-31 03:52:49 +02:00
commit 30da270557
3 changed files with 6 additions and 6 deletions

View file

@ -110,7 +110,7 @@ class Server(threading.Thread):
def send_pong(self, cnt):
self.s.send(("PONG %s\r\n" % cnt).encode ())
def send_response(self, res):
def send_response(self, res, origin):
if res.channel is not None and res.channel != self.nick:
self.send_msg(res.channel, res.get_message())