Skip to content
Snippets Groups Projects
Commit b27c37d8 authored by rswindell's avatar rswindell
Browse files

Log a message rather than try to open an invalid sub when requested by the

client.
parent bc1b0f35
No related branches found
No related tags found
No related merge requests found
......@@ -219,6 +219,10 @@ switch(field[0]) {
}
break;
case "sub":
if(!msg_area.sub[field[1]]) {
writeln(log(LOG_NOTICE, "Invalid message area: " + field[1]));
break;
}
msgbase = new MsgBase(field[1]);
if(msgbase.open!=undefined && msgbase.open()==false) {
writeln("!ERROR " + msgbase.last_error);
......
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