port = 0;
redirect_to.clear();
- return CMD_LOCALONLY;
+ return CMD_SUCCESS;
}
port = 0;
reason.c_str());
}
- return CMD_LOCALONLY;
+ return CMD_SUCCESS;
}
};
{
}
- virtual int OnUserRegister(User* user)
+ virtual ModResult OnUserRegister(User* user)
{
if (js.port && js.redirect_new_users)
{
user->WriteNumeric(10, "%s %s %d :Please use this Server/Port instead",
user->nick.c_str(), js.redirect_to.c_str(), js.port);
ServerInstance->Users->QuitUser(user, js.reason);
- return 0;
+ return MOD_RES_PASSTHRU;
}
- return 0;
+ return MOD_RES_PASSTHRU;
}