From 0939feee844a01624ecf9340568f99b4bd626edd Mon Sep 17 00:00:00 2001 From: projectmoon Date: Mon, 9 Nov 2020 21:14:15 +0000 Subject: [PATCH] Placeholder to record all user info when joining room --- src/bot/event_handlers.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bot/event_handlers.rs b/src/bot/event_handlers.rs index a8af648..809e1be 100644 --- a/src/bot/event_handlers.rs +++ b/src/bot/event_handlers.rs @@ -122,6 +122,9 @@ impl EventEmitter for DiceBot { let result = if event_affects_us && !adding_user { info!("Clearing all information for room ID {}", room_id); self.db.rooms.clear_info(room_id) + } else if event_affects_us && adding_user { + info!("Joined room {}; recording user information", room_id); + Ok(()) } else if !event_affects_us && adding_user { info!("Adding user {} to room ID {}", username, room_id); self.db.rooms.add_user_to_room(username, room_id)