Skip to content

Commit

Permalink
Add more information to the antiknocker snotice.
Browse files Browse the repository at this point in the history
  • Loading branch information
SadieCat committed Jan 4, 2025
1 parent db6d96d commit ec0e826
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 4/m_antiknocker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ class ModuleAntiKnocker final
if (!donick || !std::regex_match(newnick, nickregex))
return MOD_RES_PASSTHRU;

ServerInstance->SNO.WriteToSnoMask('a', "User {} ({}) was prevented from using a knocker nick: {}",
user->nick, user->GetRealUserHost(), newnick);
ServerInstance->SNO.WriteToSnoMask('a', "User {} ({}) [{}] in class {} was prevented from using a knocker nick: {}",
user->nick, user->GetRealUserHost(), user->GetAddress(), user->GetClass()->name, newnick);

PunishUser(user);
return MOD_RES_DENY;
Expand Down

0 comments on commit ec0e826

Please sign in to comment.