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

Throw an error if we're about to overwrite a server object

parent 1d347d4a
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -470,6 +470,9 @@ function QWK_Master_Authentication(qwkid) {
function Register_Unregistered_Local_Server(unreg, p, nline) {
var i, s;
if (typeof Servers[p[0].toLowerCase()] !== 'undefined')
throw "Trying to overwrite existing server in Register_Unregistered_Local_Server()";
Servers[p[0].toLowerCase()] = new IRC_Server();
s = Servers[p[0].toLowerCase()];
Local_Servers[p[0].toLowerCase()] = s;
......
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