Commit 32d1a5b9 authored by Dustin L. Howett's avatar Dustin L. Howett

Don't hardcode the nick in the PRIVMSG event handler.

parent a6c98ea7
......@@ -35,7 +35,7 @@ _EVENT(ping) {
_EVENT(privmsg) {
char *recipient = strsep(&msgbuf, " ");
bool priv = false;
if(strcmp(recipient, "oligosII") == 0) {
if(server->nick && strcmp(recipient, server->nick) == 0) {
priv = true;
}
......
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