Skip to content

Commit

Permalink
notifyprivusers -> notifyprivclients
Browse files Browse the repository at this point in the history
  • Loading branch information
sauerbraten committed Jan 22, 2023
1 parent dfa9f7e commit c5ce3ce
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions patches/anticheat.patch
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ index 0000000..2fe07ee
+ );
+ }
+ conoutf(CON_WARN, "%s", msg);
+ if(!forceanticheatclient) notifyprivusers(PRIV_AUTH, msg);
+ if(!forceanticheatclient) notifyprivclients(PRIV_AUTH, msg);
+ else
+ {
+ sendf(-1, 1, "ris", N_SERVMSG, msg);
Expand Down Expand Up @@ -474,7 +474,7 @@ index 0000000..2fe07ee
+ ci->anticheatverified, authstatusname(ci->anticheatverified)
+ );
+ conoutf(CON_WARN, "%s", msg);
+ notifyprivusers(PRIV_AUTH, msg);
+ notifyprivclients(PRIV_AUTH, msg);
+ }
+
+ if(oldanticheatverified < ci->anticheatverified)
Expand Down Expand Up @@ -540,7 +540,7 @@ index 0000000..2fe07ee
+ {
+ defformatstring(msg, "\fs\f3%s self-reported a violation: %s (code: %d)\fr", colorname(ci), details, code);
+ conoutf(CON_WARN, "%s", msg);
+ notifyprivusers(PRIV_AUTH, msg);
+ notifyprivclients(PRIV_AUTH, msg);
+ }
+
+ bool unregisteranticheatclient(clientinfo *ci)
Expand Down Expand Up @@ -925,7 +925,7 @@ index 0a4c901..4e9fe3a 100644
+ extern bool unregisteranticheatclient(clientinfo *c);
+ extern void forcespectator(clientinfo *ci);
+ extern void unspectate(clientinfo *ci);
+ extern void notifyprivusers(int minpriv, char *msg);
+ extern void notifyprivclients(int minpriv, char *msg);
+#endif
}

Expand Down
2 changes: 1 addition & 1 deletion patches/bans.patch
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ index 2aab85b..4448c04 100644
extern bool handleservcmd(clientinfo *ci, const char *cmd);
@@ -1277,6 +1282,12 @@ namespace server
extern void unspectate(clientinfo *ci);
extern void notifyprivusers(int minpriv, char *msg);
extern void notifyprivclients(int minpriv, char *msg);
#endif
+
+ // bans
Expand Down
4 changes: 2 additions & 2 deletions patches/managed_games.patch
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ index 0000000..1c1b1d7
+ }
+
+
+ void notifyprivusers(int minpriv, char *msg)
+ void notifyprivclients(int minpriv, char *msg)
+ {
+ loopv(clients)
+ {
Expand All @@ -543,7 +543,7 @@ index 0000000..1c1b1d7
+ savedemo(d, ci->name);
+ static string msg;
+ formatstring(msg, "received client-side demo from %s", colorname(ci));
+ notifyprivusers(PRIV_ADMIN, msg);
+ notifyprivclients(PRIV_ADMIN, msg);
+ }
+
+ struct messageevent : gameevent
Expand Down
6 changes: 3 additions & 3 deletions src/anticheat/anticheat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ namespace server {
);
}
conoutf(CON_WARN, "%s", msg);
if(!forceanticheatclient) notifyprivusers(PRIV_AUTH, msg);
if(!forceanticheatclient) notifyprivclients(PRIV_AUTH, msg);
else
{
sendf(-1, 1, "ris", N_SERVMSG, msg);
Expand Down Expand Up @@ -468,7 +468,7 @@ namespace server {
ci->anticheatverified, authstatusname(ci->anticheatverified)
);
conoutf(CON_WARN, "%s", msg);
notifyprivusers(PRIV_AUTH, msg);
notifyprivclients(PRIV_AUTH, msg);
}

if(oldanticheatverified < ci->anticheatverified)
Expand Down Expand Up @@ -534,7 +534,7 @@ namespace server {
{
defformatstring(msg, "\fs\f3%s self-reported a violation: %s (code: %d)\fr", colorname(ci), details, code);
conoutf(CON_WARN, "%s", msg);
notifyprivusers(PRIV_AUTH, msg);
notifyprivclients(PRIV_AUTH, msg);
}

bool unregisteranticheatclient(clientinfo *ci)
Expand Down
2 changes: 1 addition & 1 deletion src/fpsgame/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ namespace server
extern bool unregisteranticheatclient(clientinfo *c);
extern void forcespectator(clientinfo *ci);
extern void unspectate(clientinfo *ci);
extern void notifyprivusers(int minpriv, char *msg);
extern void notifyprivclients(int minpriv, char *msg);
#endif

// bans
Expand Down
4 changes: 2 additions & 2 deletions src/p1xbraten/managed_games.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ namespace server {
}


void notifyprivusers(int minpriv, char *msg)
void notifyprivclients(int minpriv, char *msg)
{
loopv(clients)
{
Expand All @@ -150,7 +150,7 @@ namespace server {
savedemo(d, ci->name);
static string msg;
formatstring(msg, "received client-side demo from %s", colorname(ci));
notifyprivusers(PRIV_ADMIN, msg);
notifyprivclients(PRIV_ADMIN, msg);
}

struct messageevent : gameevent
Expand Down

0 comments on commit c5ce3ce

Please sign in to comment.