block_motd: Update internal state when server has no MOTD

Otherwise if we request MOTD and the server doesn't have one the module
would have incorrect state.
This commit is contained in:
Kyle Fuller
2017-01-11 03:12:47 +00:00
parent 45a6329312
commit 2d2672693a
+6
View File
@@ -62,6 +62,12 @@ class CBlockMotd : public CModule {
}
StopTemporarilyAcceptingMotd();
}
if (sCmd == "422") {
// Server has no MOTD
StopTemporarilyAcceptingMotd();
}
return CONTINUE;
}