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

Handle undefined IRC class in [Server]

parent cd73654b
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -320,6 +320,14 @@ function Read_Config_File() {
Scan_For_Banned_Clients();
for (i in CLines) {
c = CLines[i];
if (!YLines[c.ircclass]) {
log(LOG_WARNING, format(
"!WARNING IRC Class %u defined for server %s doesn't exist. Using Class 0.",
c.ircclass,
c.servername
));
c.ircclass = 0;
}
if ((YLines[c.ircclass].connfreq > 0) && c.port && !Servers[c.servername.toLowerCase()])
Reset_Autoconnect(c, 1 /* connect immediately */);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment