Skip to content

Commit

Permalink
Merge pull request #66 from Sebbo94BY/Ignore-ServerQuery-clients-in-n…
Browse files Browse the repository at this point in the history
…ewbie-pokes

inform_team_about_newbie: Ignore ServerQuery clients
  • Loading branch information
Sebbo94BY authored Sep 1, 2023
2 parents 20e43c8 + 9539af2 commit 76bd314
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/inform_team_about_newbie/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,14 @@ def check_joined_client(self, client=None):
)
return

if client.client_uid == "ServerQuery":
InformTeamAboutNewbie.logger.debug(
"The client client_name=%s, client_database_id=%s is a ServerQuery. Ignoring.",
int(client.client_name),
int(client.client_dbid),
)
return

client_servergroup_ids = self.get_servergroups_by_client(client.client_dbid)

if self.newbie_servergroup.get("sgid") not in client_servergroup_ids:
Expand Down

0 comments on commit 76bd314

Please sign in to comment.