]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ssl_dummy.cpp
Someone is getting slapped for this; the new hidesplits/hidebans behavior doesn't...
[user/henk/code/inspircd.git] / src / modules / m_ssl_dummy.cpp
index 5456be6f13af7b393310a34d602f8004bdd017f9..69e4da3e1670566e738d81d412e032ac58535026 100644 (file)
@@ -1,29 +1,26 @@
-/*   +------------------------------------+
- *   | Inspire Internet Relay Chat Daemon |
- *   +------------------------------------+
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
  *
- *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- *   E-mail:
- *     <brain@chatspike.net>
- *     <Craig@chatspike.net>
- * <omster@gmail.com>
- * 
- * Written by Craig Edwards, Craig McLure, and others.
  * This program is free but copyrighted software; see
- *the file COPYING for details.
+ *            the file COPYING for details.
  *
  * ---------------------------------------------------
  */
 
 #include "users.h"
 #include "modules.h"
-#include "helperfuncs.h"
+#include "inspircd.h"
+
 
 /* $ModDesc: Makes remote /whoises to SSL servers work on a non-ssl server */
 
 class ModuleSSLDummy : public Module
 {
-       Server* Srv;
+       
        char* dummy;
  public:
        
@@ -38,7 +35,7 @@ class ModuleSSLDummy : public Module
                
        virtual Version GetVersion()
        {
-               return Version(1, 0, 0, 0, VF_VENDOR);
+               return Version(1, 0, 0, 0, VF_VENDOR, API_VERSION);
        }
 
        void Implements(char* List)
@@ -51,7 +48,7 @@ class ModuleSSLDummy : public Module
        {
                if(dest->GetExt("ssl", dummy))
                {
-                       source->WriteServ("320 %s %s :is using a secure connection", source->nick, dest->nick);
+                       ServerInstance->SendWhoisLine(source, dest, 320, "%s %s :is using a secure connection", source->nick, dest->nick);
                }
        }