private void OnLogOut(JabbrRooms rooms) { _chat["id"] = string.Empty; _chat["name"] = string.Empty; _chat["activeRoom"] = string.Empty; LogToUI(":: You are now logged out"); }
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"); } }