diff options
Diffstat (limited to 'src/modules/m_sslmodes.cpp')
-rw-r--r-- | src/modules/m_sslmodes.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/m_sslmodes.cpp b/src/modules/m_sslmodes.cpp index b97f099b9..97576795a 100644 --- a/src/modules/m_sslmodes.cpp +++ b/src/modules/m_sslmodes.cpp @@ -25,6 +25,7 @@ class SSLMode : public ModeHandler return MODEACTION_DENY; } } + channel->SetMode('z',true); return MODEACTION_ALLOW; } else @@ -34,7 +35,13 @@ class SSLMode : public ModeHandler } else { - (channel->IsModeSet('z')) ? return MODEACTION_DENY : return MODEACTION_ALLOW; + if (channel->IsModeSet('z')) + { + channel->SetMode('z',false); + return MODEACTION_ALLOW; + } + + return MODEACTION_DENY; } } }; |