Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down