aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_sslmodes.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-02-09 16:02:23 -0600
committerGravatar Daniel De Graaf2010-08-03 17:32:35 -0400
commit1dc169ac6bb57f7839b0af45a39af6336d6bd72a (patch)
tree9d60f791babafc7ea06a0bdc5941cee65fe4dd75 /src/modules/m_sslmodes.cpp
parentAllow listmodes to be viewed via PROP (diff)
Add support for <modeletters> config block to adjust mode letters
Diffstat (limited to 'src/modules/m_sslmodes.cpp')
-rw-r--r--src/modules/m_sslmodes.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_sslmodes.cpp b/src/modules/m_sslmodes.cpp
index a1a24d8ad..b4a3761fa 100644
--- a/src/modules/m_sslmodes.cpp
+++ b/src/modules/m_sslmodes.cpp
@@ -27,7 +27,7 @@ class SSLMode : public ModeHandler
{
if (adding)
{
- if (!channel->IsModeSet('z'))
+ if (!channel->IsModeSet(this))
{
if (IS_LOCAL(source))
{
@@ -43,7 +43,7 @@ class SSLMode : public ModeHandler
}
}
}
- channel->SetMode('z',true);
+ channel->SetMode(this,true);
return MODEACTION_ALLOW;
}
else
@@ -53,9 +53,9 @@ class SSLMode : public ModeHandler
}
else
{
- if (channel->IsModeSet('z'))
+ if (channel->IsModeSet(this))
{
- channel->SetMode('z',false);
+ channel->SetMode(this,false);
return MODEACTION_ALLOW;
}
@@ -81,7 +81,7 @@ class ModuleSSLModes : public Module
ModResult OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs, const std::string &keygiven)
{
- if(chan && chan->IsModeSet('z'))
+ if(chan && chan->IsModeSet(&sslm))
{
UserCertificateRequest req(user, this);
req.Send();