mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
Merge pull request #1314 from RealKindOne/master
route_replies: fix module to check if we are not connected to a network. Close #1299
This commit is contained in:
@@ -294,7 +294,9 @@ class CRouteRepliesMod : public CModule {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user