diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 17:33:24 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 17:33:24 +0000 |
commit | 392ad3a51808ca6540043274216e5e4a0d36c3f6 (patch) | |
tree | 1ff01c6d4c0f08752019101626c90977c111715c /src/modules/m_sslmodes.cpp | |
parent | ca5a40b4fcef811bec5e714b1f0acd35b72c6c1c (diff) |
GetExt conversion
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4289 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_sslmodes.cpp')
-rw-r--r-- | src/modules/m_sslmodes.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_sslmodes.cpp b/src/modules/m_sslmodes.cpp index e0b3126e4..d2a8f6fb1 100644 --- a/src/modules/m_sslmodes.cpp +++ b/src/modules/m_sslmodes.cpp @@ -5,6 +5,8 @@ /* $ModDesc: Provides support for unreal-style channel mode +z */ +static char* dummy; + class SSLMode : public ModeHandler { Server* Srv; @@ -20,7 +22,7 @@ class SSLMode : public ModeHandler chanuserlist userlist = Srv->GetUsers(channel); for(unsigned int i = 0; i < userlist.size(); i++) { - if(!userlist[i]->GetExt("ssl")) + if(!userlist[i]->GetExt("ssl", dummy)) { WriteServ(source->fd, "490 %s %s :all members of the channel must be connected via SSL", source->nick, channel->name); return MODEACTION_DENY; @@ -76,7 +78,7 @@ class ModuleSSLModes : public Module { if(chan && chan->IsModeSet('z')) { - if(user->GetExt("ssl")) + if(user->GetExt("ssl", dummy)) { // Let them in return 0; |