Skip to content
Snippets Groups Projects
Commit b17ff339 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

If open_sub() fails, set readonly to true.

parent bdef333e
Branches
Tags
No related merge requests found
Pipeline #7154 passed
......@@ -1693,6 +1693,7 @@ var authenticated_command_handlers = {
if(!open_sub(sub)) {
tagged(tag, "NO", "Can't find "+args[1]+" ("+sub+")");
state=Authenticated;
readonly=true;
return;
}
tagged(tag, "OK", "[READ-WRITE] Mailbox "+sub+" has been selected");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment