Commit caaf4fcd authored by Dustin L. Howett's avatar Dustin L. Howett

Un-collide nicknames on a 433 from the server.

parent a691aa42
......@@ -28,6 +28,13 @@ _EVENT(001) {
ircprintf(server, "JOIN #bacon");
}
// 433 Nickname In Use
_EVENT(433) {
strsep(&msgbuf, " ");
char *nick = strsep(&msgbuf, " ");
ircprintf(server, "NICK %s_", nick);
}
_EVENT(ping) {
ircprintf(server, "PONG %s", msgbuf);
}
......@@ -81,4 +88,5 @@ static __attribute__((constructor)) void _events_init() {
event_handlers["PRIVMSG"] = &evt_privmsg;
event_handlers["PING"] = &evt_ping;
event_handlers["001"] = &evt_001;
event_handlers["433"] = &evt_433;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment