]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_swhois.cpp
Commit patch from danieldg that makes a ton of stuff const-safe for latest warn-happy...
[user/henk/code/inspircd.git] / src / modules / m_swhois.cpp
index 3a0b2b0a7e3ba950955ebbea06f9145095c38b9c..25a860ae42bc8e62912630cabee9167d95d610c1 100644 (file)
@@ -21,7 +21,7 @@ class CommandSwhois : public Command
 {
        
  public:
-       CommandSwhois (InspIRCd* Instance) : Command(Instance,"SWHOIS",'o',2)
+       CommandSwhois (InspIRCd* Instance) : Command(Instance,"SWHOIS","o",2)
        {
                this->source = "m_swhois.so";
                syntax = "<nick> <swhois>";
@@ -38,12 +38,6 @@ class CommandSwhois : public Command
                        return CMD_FAILURE;
                }
 
-               if (!*parameters[1])
-               {
-                       user->WriteServ("NOTICE %s :*** SWHOIS: Whois line must be specified", user->nick);
-                       return CMD_FAILURE;
-               }
-               
                std::string line;
                for (int i = 1; i < pcnt; i++)
                {
@@ -210,8 +204,8 @@ class ModuleSWhois : public Module
                        std::string* text;
                        if (!dest->GetExt("swhois", text))
                        {
-                               std::string* text = new std::string(extdata);
-                               dest->Extend("swhois",text);
+                               std::string* text2 = new std::string(extdata);
+                               dest->Extend("swhois",text2);
                        }
                }
        }