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);
        }
Beispiel #2
0
 public static void LeaveChat(ChatUser from, Channel channel, string param)
 {
     ChatUser.RemoveChatUser(from);
 }
Beispiel #3
0
 private static void EventSink_Disconnected(DisconnectedEventArgs e)
 {
     ChatUser.RemoveChatUser(e.Mobile);
 }