From 14def7091342bbb9869bfc5d8e6a57508fc90eea Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 28 Feb 2025 00:14:38 +0000 Subject: implement more of the discord gateway protocol --- irc/pylon.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'irc') diff --git a/irc/pylon.lua b/irc/pylon.lua index 8c43b13..0cee9aa 100644 --- a/irc/pylon.lua +++ b/irc/pylon.lua @@ -1,6 +1,5 @@ local cqueues = require'cqueues' local socket = require'cqueues.socket' -local pprint = require'pprint' local rirc = require'irc.rirc' local Queue = require'queue' local Channel = require'channel' @@ -11,7 +10,7 @@ local Irc = pylon.subclass 'irc' function Irc._send(self, args) args.source = args.source or self.nodename local sent = rirc.send(self.sock, args) - print('>', sent) + self:log('>', sent) end function Irc.init(self) @@ -26,7 +25,7 @@ end function Irc.recving(self) for line in self.sock:lines "*l" do - print('<', line) + self:log('<', line) local msg = rirc.parse(line) if msg.op == 'PING' then self:_send{'PONG', msg.args[1]} -- cgit v1.2.3