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)
}
}
-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());