* ---------------------------------------------------
*/
+#include "inspircd.h"
#include "configreader.h"
#include "users.h"
#include "modules.h"
#include "socketengine.h"
#include "command_parse.h"
#include "dns.h"
-#include "inspircd.h"
// version is a simple class for holding a modules version number
Version::Version(int major, int minor, int revision, int build, int flags, int api_ver)
return match(sliteral.c_str(),spattern.c_str());
}
-bool InspIRCd::CallCommandHandler(const std::string &commandname, const char** parameters, int pcnt, userrec* user)
+CmdResult InspIRCd::CallCommandHandler(const std::string &commandname, const char** parameters, int pcnt, userrec* user)
{
return this->Parser->CallHandler(commandname,parameters,pcnt,user);
}
}
}
-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());