Skip to content

Commit

Permalink
Remove REG_NICK from users who are not REG_ALL when /ENFORCE is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackmcbarn committed Oct 20, 2010
1 parent f35185e commit 6f88f43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/m_account_nick_ownership.cpp
Expand Up @@ -385,6 +385,8 @@ class CommandEnforce : public Command
target->WriteNumeric(433, "%s %s :Nickname overruled: ENFORCE command used",
target->nick.c_str(), target->nick.c_str());
target->ChangeNick(target->uuid, true);
if(user->registered != REG_ALL)
user->registered &= ~REG_NICK;
}
return CMD_SUCCESS;
}
Expand Down

0 comments on commit 6f88f43

Please sign in to comment.