diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 14:08:29 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 14:08:29 +0000 |
commit | 9dd72b7003963d868a23da930a91300b49ab4959 (patch) | |
tree | da857d8aa8ce1df3ddc36b6ea44435ef76b697f0 /src/modules | |
parent | 7aaae3c8425cbe963947f12092742d9044a36dac (diff) |
Gah, im forgetting to SetMode!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4217 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-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; } } }; |