if(pcnt == 1)
{
- if (ServerInstance->XLines->DelLine(parameters[0], "S", user))
+ if (ServerInstance->XLines->DelLine(parameters[0], "SHUN", user))
{
ServerInstance->SNO->WriteToSnoMask('x',"%s Removed shun on %s.",user->nick,parameters[0]);
}
virtual void OnUserConnect(User* user)
{
+ if (!IS_LOCAL(user))
+ return;
+
// Apply lines on user connect
XLine *rl = ServerInstance->XLines->MatchesLine("SHUN", user);
virtual int OnPreCommand(const std::string &command, const char* const*parameters, int pcnt, User* user, bool validated, const std::string &original_line)
{
- if (user->registered != REG_ALL)
- return 0;
-
if((command != "PONG") && (command != "PING"))
{
if (user->GetExt("shunned"))