summaryrefslogtreecommitdiff
path: root/src/modules/m_sslmodes.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 17:31:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 17:31:53 +0000
commitcbff8c76278f7cb706e3c4ae0c8bc4cb63c15f96 (patch)
treea3919e7e2eafbd831bf242a6a8efda2a8b8be0e2 /src/modules/m_sslmodes.cpp
parentcd767403e9cce6cc0749160fddb9e7c82042d23c (diff)
And we're all done!!! (well, it compiles, anyway)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4235 e03df62e-2008-0410-955e-edbf42e46eb7
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');
}