Check connectivity before sending messages

This commit is contained in:
ShadowNinja 2014-05-26 03:04:35 -04:00
parent 3b35bb1871
commit 26ca287b09
1 changed files with 2 additions and 0 deletions

View File

@ -131,10 +131,12 @@ function irc:reply(message)
end
function irc:send(msg)
if not self.connected then return end
self.conn:send(msg)
end
function irc:queue(msg)
if not self.connected then return end
self.conn:queue(msg)
end