diff --git a/server/src/cmd.rs b/server/src/cmd.rs index c3b4951587..1f9fe7ed0a 100644 --- a/server/src/cmd.rs +++ b/server/src/cmd.rs @@ -119,10 +119,10 @@ lazy_static! { handle_build, ), ChatCommand::new( - "msg", + "tell", "{}", - "/msg : Send a message to another player", - handle_msg, + "/tell : Send a message to another player", + handle_tell, ), ChatCommand::new( "killnpcs", @@ -437,7 +437,7 @@ fn handle_killnpcs(server: &mut Server, entity: EcsEntity, _args: String, _actio server.clients.notify(entity, ServerMsg::Chat(text)); } -fn handle_msg(server: &mut Server, entity: EcsEntity, args: String, action: &ChatCommand) { +fn handle_tell(server: &mut Server, entity: EcsEntity, args: String, action: &ChatCommand) { let opt_alias = scan_fmt!(&args, action.arg_fmt, String); match opt_alias { Some(alias) => { @@ -462,8 +462,8 @@ fn handle_msg(server: &mut Server, entity: EcsEntity, args: String, action: &Cha ServerMsg::Chat(format!("{} tells you:{}", name, msg)), ); server.clients.notify( - player, - ServerMsg::Chat(format!("You tell {} {}", alias, msg)), + entity, + ServerMsg::Chat(format!("You tell {}:{}", alias, msg)), ); } None => {