diff --git a/src/core/player.rs b/src/core/player.rs index 0c9c4ff..768d018 100644 --- a/src/core/player.rs +++ b/src/core/player.rs @@ -203,7 +203,7 @@ pub enum JoinResult { } /// Player update event type which is sent to a player actor and from there to a connection handler. -#[derive(Clone)] +#[derive(Clone, Debug)] pub enum Updates { RoomTopicChanged { room_id: RoomId, diff --git a/src/projections/irc/mod.rs b/src/projections/irc/mod.rs index e5cc7de..afbf10f 100644 --- a/src/projections/irc/mod.rs +++ b/src/projections/irc/mod.rs @@ -273,6 +273,7 @@ async fn handle_update( rooms: &RoomRegistry, update: Updates, ) -> Result<()> { + log::debug!("Sending irc message to player {player_id:?} on update {update:?}"); match update { Updates::RoomJoined { new_member_id, @@ -378,7 +379,7 @@ async fn handle_incoming_message( ClientMessage::Ping { token } => { ServerMessage { tags: vec![], - sender: None, + sender: Some(config.server_name.clone()), body: ServerMessageBody::Pong { from: config.server_name.clone(), token,