]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_swhois.cpp
Annotations
[user/henk/code/inspircd.git] / src / modules / m_swhois.cpp
index f885a6145e16e528b7d0421003112d507a7e337c..4b62db699ad680c399c980cce1abff04d2b2f765 100644 (file)
@@ -17,7 +17,7 @@
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "helperfuncs.h"
+
 #include "inspircd.h"
 
 /* $ModDesc: Provides the SWHOIS command which allows setting of arbitary WHOIS lines */
@@ -28,13 +28,13 @@ class cmd_swhois : public command_t
 {
        
  public:
- cmd_swhois (InspIRCd* Instance) : command_t(Instance,"SWHOIS",'o',2)
      cmd_swhois (InspIRCd* Instance) : command_t(Instance,"SWHOIS",'o',2)
        {
                this->source = "m_swhois.so";
                syntax = "<nick> <swhois>";
        }
 
-       void Handle(const char** parameters, int pcnt, userrec* user)
+       CmdResult Handle(const char** parameters, int pcnt, userrec* user)
        {
                userrec* dest = ServerInstance->FindNick(parameters[0]);
                if(dest)
@@ -70,7 +70,11 @@ class cmd_swhois : public command_t
                        
                        text = new std::string(line);
                        dest->Extend("swhois", text);
+
+                       return CMD_SUCCESS;
                }
+
+               return CMD_FAILURE;
        }
 };