]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_away.cpp
Add sanity checks to the ssl modules so that theres no possibility of an out of range...
[user/henk/code/inspircd.git] / src / cmd_away.cpp
index fa944932f57782e2a5934f3e69ad6941b49a145d..98209217f7e3f401cab0cbcf9ff3d0d7188d2f1a 100644 (file)
@@ -2,31 +2,26 @@
  *       | 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 "configreader.h"
-#include "users.h"
-#include "modules.h"
+#include "inspircd.h"
 #include "commands/cmd_away.h"
 
-
-
-extern "C" command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport command_t* init_command(InspIRCd* Instance)
 {
        return new cmd_away(Instance);
 }
 
-void cmd_away::Handle (const char** parameters, int pcnt, userrec *user)
+/** Handle /AWAY
+ */
+CmdResult cmd_away::Handle (const char** parameters, int pcnt, userrec *user)
 {
        if ((pcnt) && (*parameters[0]))
        {
@@ -40,4 +35,5 @@ void cmd_away::Handle (const char** parameters, int pcnt, userrec *user)
                user->WriteServ("305 %s :You are no longer marked as being away",user->nick);
                FOREACH_MOD(I_OnCancelAway,OnCancelAway(user));
        }
+       return CMD_SUCCESS;
 }