diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-09-13 10:30:50 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-09-13 10:30:50 -0300 |
| commit | 875b584b090680858393bb24dc58fa85e1a434ce (patch) | |
| tree | c305fb6282b9cafee35eb587915dd8a07eb559ad /src/connections.cc | |
| parent | 748f676ea6474053e592f47804da27d4b9e49041 (diff) | |
| download | querymanager-875b584b090680858393bb24dc58fa85e1a434ce.tar.gz querymanager-875b584b090680858393bb24dc58fa85e1a434ce.zip | |
fix RIGHT check with notations and ip banishments
Diffstat (limited to 'src/connections.cc')
| -rw-r--r-- | src/connections.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connections.cc b/src/connections.cc index 480cc1e..3c92a51 100644 --- a/src/connections.cc +++ b/src/connections.cc @@ -1063,7 +1063,7 @@ void ProcessSetNotationQuery(TConnection *Connection, TReadBuffer *Buffer){ } // TODO(fusion): Might be `NO_BANISHMENT`. - if(!GetCharacterRight(CharacterID, "NOTATION")){ + if(GetCharacterRight(CharacterID, "NOTATION")){ SendQueryStatusError(Connection, 2); return; } @@ -1225,7 +1225,7 @@ void ProcessBanishIPAddressQuery(TConnection *Connection, TReadBuffer *Buffer){ } // TODO(fusion): Might be `NO_BANISHMENT`. - if(!GetCharacterRight(CharacterID, "IP_BANISHMENT")){ + if(GetCharacterRight(CharacterID, "IP_BANISHMENT")){ SendQueryStatusError(Connection, 2); return; } |
