route_replies: fix module to check if we are not connected to a network.

Cherry-pick of 34db7be4ae
This commit is contained in:
Alexey Sokolov
2016-11-22 23:50:32 +00:00
parent d596226ddc
commit 0aa3f7e362
+3 -3
View File
@@ -310,9 +310,9 @@ public:
virtual EModRet OnUserRaw(CString& sLine) override
{
CString sCmd = sLine.Token(0).AsUpper();
if (!GetNetwork()->GetIRCSock())
return CONTINUE;
if (!GetNetwork()->GetIRCSock() ||
!GetNetwork()->GetIRCSock()->IsConnected())
return CONTINUE;
if (sCmd.Equals("MODE")) {
// Check if this is a mode request that needs to be handled