Fixed a bug causing all connection events to be logged to ES on login

feature/embed-uploads
Tristan Gosselin-Hane 7 years ago
parent 77883d963b
commit dd3452015a
No known key found for this signature in database
GPG Key ID: 86886FC44C72EAA1
  1. 8
      webhook-bridge.py

@ -300,10 +300,10 @@ def main():
for idx, uuid in enumerate(diff):
el.log_connection(uuid=uuid, reason=el.ConnectionReason.DISCONNECTED,
count=len(PREVIOUS_PLAYER_LIST) - (idx + 1))
# Don't bother announcing the bot's own join message (who cares) but log it for analytics still
if config.es_enabled:
el.log_connection(
uuid=action.uuid, reason=el.ConnectionReason.CONNECTED, count=len(PLAYER_LIST))
# Don't bother announcing the bot's own join message (who cares) but log it for analytics still
if config.es_enabled:
el.log_connection(
uuid=action.uuid, reason=el.ConnectionReason.CONNECTED, count=len(PLAYER_LIST))
if config.es_enabled:
el.log_connection(uuid=action.uuid, reason=el.ConnectionReason.SEEN)

Loading…
Cancel
Save