summaryrefslogtreecommitdiff
path: root/src/modules/m_sslmodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_sslmodes.cpp')
-rw-r--r--src/modules/m_sslmodes.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_sslmodes.cpp b/src/modules/m_sslmodes.cpp
index 97576795a..e0b3126e4 100644
--- a/src/modules/m_sslmodes.cpp
+++ b/src/modules/m_sslmodes.cpp
@@ -7,8 +7,9 @@
class SSLMode : public ModeHandler
{
+ Server* Srv;
public:
- SSLMode() : ModeHandler('z', 0, 0, false, MODETYPE_CHANNEL, false) { }
+ SSLMode(Server* s) : ModeHandler('z', 0, 0, false, MODETYPE_CHANNEL, false), Srv(s) { }
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding)
{
@@ -57,7 +58,7 @@ class ModuleSSLModes : public Module
{
Srv = Me;
- sslm = new SSLMode();
+ sslm = new SSLMode(Me);
Srv->AddMode(sslm, 'z');
}