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

Detect if SJOIN is empty post-processing

parent b8c5978f
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
...@@ -1004,6 +1004,20 @@ function Server_Work(cmdline) { ...@@ -1004,6 +1004,20 @@ function Server_Work(cmdline) {
); );
} }
j = 0;
for (i in tmp.users) {
j++;
}
if (j == 0) {
umode_notice(USERMODE_OPER,"Notice",format(
"Server %s trying to SJOIN zero-member channel %s post-processing.",
this.nick,
tmp.nam
));
delete Channels[p[1].toUpperCase()];
break;
}
if (tmp.created > parseInt(p[0])) if (tmp.created > parseInt(p[0]))
tmp.created = parseInt(p[0]); tmp.created = parseInt(p[0]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment