]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules.cpp
Fix std::sort stuff for w00t
[user/henk/code/inspircd.git] / src / modules.cpp
index 0acc3683c04efcca08eda73330c03607a4c15749..cc334d4f7321d9749dfacfc37f44fb4715a0cb2d 100644 (file)
@@ -378,7 +378,7 @@ bool InspIRCd::MatchText(const std::string &sliteral, const std::string &spatter
 
 bool InspIRCd::CallCommandHandler(const std::string &commandname, const char** parameters, int pcnt, userrec* user)
 {
-       return this->Parser->CallHandler(commandname,parameters,pcnt,user);
+       return (this->Parser->CallHandler(commandname,parameters,pcnt,user) != CMD_INVALID);
 }
 
 bool InspIRCd::IsValidModuleCommand(const std::string &commandname, int pcnt, userrec* user)
@@ -448,18 +448,6 @@ bool InspIRCd::AddResolver(Resolver* r, bool cached)
        }
 }
 
-bool InspIRCd::UserToPseudo(userrec* user, const std::string &message)
-{
-       throw CoreException("The InspIRCd::UsertoPseudo function should not be used in InspIRCd later than 1.0.x");
-       return false;
-}
-
-bool InspIRCd::PseudoToUser(userrec* alive, userrec* zombie, const std::string &message)
-{
-       throw CoreException("The InspIRCd::PseudotoUser function should not be used in InspIRCd later than 1.0.x");
-       return false;
-}
-
 void InspIRCd::AddGLine(long duration, const std::string &source, const std::string &reason, const std::string &hostmask)
 {
        XLines->add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());