aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-09-13 10:30:50 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-09-13 10:30:50 -0300
commit875b584b090680858393bb24dc58fa85e1a434ce (patch)
treec305fb6282b9cafee35eb587915dd8a07eb559ad
parent748f676ea6474053e592f47804da27d4b9e49041 (diff)
downloadquerymanager-875b584b090680858393bb24dc58fa85e1a434ce.tar.gz
querymanager-875b584b090680858393bb24dc58fa85e1a434ce.zip
fix RIGHT check with notations and ip banishments
-rw-r--r--src/connections.cc4
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;
}