diff options
Diffstat (limited to 'irc')
-rw-r--r-- | irc/pylon.lua | 5 |
1 files changed, 2 insertions, 3 deletions
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]} |