private static void HideChatFrom(Mobile player) { if (player.Account == null) { return; } Account account = player.Account as Account; ChatSystem.SendCommandTo(player, ChatCommand.CloseChatWindow); ChatUser user = ChatUser.GetChatUser(player); ChatUser.RemoveChatUser(user); }
public static void LeaveChat(ChatUser from, Channel channel, string param) { ChatUser.RemoveChatUser(from); }
private static void EventSink_Disconnected(DisconnectedEventArgs e) { ChatUser.RemoveChatUser(e.Mobile); }