1
0
mirror of https://github.com/ShadowNinja/LuaIRC.git synced 2025-07-20 16:40:26 +02:00

1 Commits

Author SHA1 Message Date
58dfd5043a Save the server's MOTD 2014-02-26 14:44:17 -05:00
2 changed files with 11 additions and 1 deletions

View File

@ -90,6 +90,17 @@ handlers["432"] = needNewNick
-- ERR_NICKNAMEINUSE
handlers["433"] = needNewNick
-- RPL_MOTDSTART
handlers["375"] = function(o, prefix, info)
o.motd = ""
end
-- RPL_MOTD
handlers["372"] = function(o, prefix, nick, line)
-- MOTD lines have a "- " prefix, strip it.
o.motd = o.motd..line:sub(3)..'\n'
end
--NAMES list
handlers["353"] = function(o, prefix, me, chanType, channel, names)
if o.track_users then

View File

@ -137,7 +137,6 @@ function meta_preconnect:connect(_host, _port)
repeat
self:think()
socket.select(nil, nil, 0.1) -- Sleep so that we don't eat CPU
until self.authed
end