X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_ssl_dummy.cpp;h=7214c416bd3c29800affbfe5d00d4bbaddbdce9a;hb=1484a054870bdfe94346057053d5c8e48a708232;hp=973ce7b02ee35d3dae78e671747db49483d95b44;hpb=7ef184998620a958b47a00b9199f117dc478cb04;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_ssl_dummy.cpp b/src/modules/m_ssl_dummy.cpp index 973ce7b02..7214c416b 100644 --- a/src/modules/m_ssl_dummy.cpp +++ b/src/modules/m_ssl_dummy.cpp @@ -24,6 +24,7 @@ class ModuleSSLDummy : public Module { Server* Srv; + char* dummy; public: ModuleSSLDummy(Server* Me) : Module::Module(Me) @@ -48,7 +49,7 @@ class ModuleSSLDummy : public Module // :kenny.chatspike.net 320 Om Epy|AFK :is a Secure Connection virtual void OnWhois(userrec* source, userrec* dest) { - if(dest->GetExt("ssl")) + if(dest->GetExt("ssl", dummy)) { WriteServ(source->fd, "320 %s %s :is using a secure connection", source->nick, dest->nick); } @@ -60,7 +61,7 @@ class ModuleSSLDummy : public Module if(extname == "ssl") { // check if this user has an ssl field to send - if(user->GetExt(extname)) + if(user->GetExt(extname, dummy)) { // call this function in the linking module, let it format the data how it // sees fit, and send it on its way. We dont need or want to know how. @@ -76,7 +77,7 @@ class ModuleSSLDummy : public Module { userrec* dest = (userrec*)target; // if they dont already have an ssl flag, accept the remote server's - if (!dest->GetExt(extname)) + if (!dest->GetExt(extname, dummy)) { dest->Extend(extname, "ON"); }