]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_ison.cpp
Fix --with-max-clients not taking a parameter (reported by erich)
[user/henk/code/inspircd.git] / src / cmd_ison.cpp
index cf60b6f6b3bc7689a1e14c9b7caf666f488e9c42..851f8e171fd774a783c21d8d2f7eb18055283a62 100644 (file)
@@ -2,12 +2,9 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- *                       E-mail:
- *                <brain@chatspike.net>
- *                <Craig@chatspike.net>
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
  *
- * Written by Craig Edwards, Craig McLure, and others.
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
  *
 #include "inspircd.h"
 #include "commands/cmd_ison.h"
 
-void cmd_ison::Handle (const char** parameters, int pcnt, userrec *user)
+extern "C" command_t* init_command(InspIRCd* Instance)
+{
+       return new cmd_ison(Instance);
+}
+
+/** Handle /ISON
+ */
+CmdResult cmd_ison::Handle (const char** parameters, int pcnt, userrec *user)
 {
        char retbuf[MAXBUF];
        userrec *u;
@@ -36,5 +40,8 @@ void cmd_ison::Handle (const char** parameters, int pcnt, userrec *user)
                }
        }
 
-       user->WriteServ( retbuf);
+       user->WriteServ(retbuf);
+
+       return CMD_SUCCESS;
 }
+