Esempio n. 1
0
        private void OnLogOut(JabbrRooms rooms)
        {
            _chat["id"] = string.Empty;
            _chat["name"] = string.Empty;
            _chat["activeRoom"] = string.Empty;

            LogToUI(":: You are now logged out");
        }
Esempio n. 2
0
        private void OnLogOn(JabbrRooms rooms)
        {
            _roomsList = rooms;

            LogToUI(":: Your nick is set to {0}", _chat["name"] ?? "(unknown)");

            if (!string.IsNullOrWhiteSpace(_chat["activeRoom"] as string))
            {
                LogToUI(":: You are now talking in #{0}", _chat["activeRoom"] as string);
            }
            else
            {
                LogToUI(":: Quick help: ");
                LogToUI(":: Type /join room to join a room");
            }
        }