From 2d2672693aff4861d808bd074c454cc0d88e0291 Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Wed, 11 Jan 2017 03:12:47 +0000 Subject: [PATCH] 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. --- modules/block_motd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/block_motd.cpp b/modules/block_motd.cpp index 881fde5b..483ab687 100644 --- a/modules/block_motd.cpp +++ b/modules/block_motd.cpp @@ -62,6 +62,12 @@ class CBlockMotd : public CModule { } StopTemporarilyAcceptingMotd(); } + + if (sCmd == "422") { + // Server has no MOTD + StopTemporarilyAcceptingMotd(); + } + return CONTINUE; }