From 9dd72b7003963d868a23da930a91300b49ab4959 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 9 Jul 2006 14:08:29 +0000 Subject: Gah, im forgetting to SetMode! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4217 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_sslmodes.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; } } }; -- cgit v1.2.3