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