mirror of
https://github.com/znc/znc.git
synced 2026-07-04 17:01:23 +02:00
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:
@@ -62,6 +62,12 @@ class CBlockMotd : public CModule {
|
||||
}
|
||||
StopTemporarilyAcceptingMotd();
|
||||
}
|
||||
|
||||
if (sCmd == "422") {
|
||||
// Server has no MOTD
|
||||
StopTemporarilyAcceptingMotd();
|
||||
}
|
||||
|
||||
return CONTINUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user