Skip to content
Snippets Groups Projects
Commit 1dab9e23 authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Reject malformed NICK messages from servers and notify

parent 0053413e
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -602,6 +602,15 @@ function Server_Work(cmdline) {
));
break;
} else { /* A user changing their nick */
if (origin.server) {
gnotice(format(
"Server %s (origin %s) sent malformed NICK message: %s",
this.nick,
origin.nick,
p.join(" ")
));
break;
}
tmp = Users[p[0].toUpperCase()];
if (tmp && tmp.nick.toUpperCase() != origin.nick.toUpperCase()) {
gnotice(format(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment