From 320f479da036b14a4127c04d27cadd63cf4e1bf9 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Wed, 23 Sep 2015 17:21:58 +0200 Subject: Replace Session.Hosting and Session.Running with Session.State and set IngameChannel-topic through CRSM::ircSetIngameChannelTopic. --- src/crsm.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crsm.hpp') diff --git a/src/crsm.hpp b/src/crsm.hpp index 117df9d..d8f6d0d 100644 --- a/src/crsm.hpp +++ b/src/crsm.hpp @@ -109,10 +109,9 @@ private: struct CRSMSession { bool IrcUseIngameChat = false; bool League = false; - bool Running = false; + enum {None = -1, Lobby = 0, Loading = 1, Running = 2} State = None; bool UserWish = false; int CountDown = -1; - bool Hosting = false; QString ScenarioName = ""; @@ -182,6 +181,7 @@ private: void stopAliasWishEditing(); QString ircActivateIngameChat(bool activated = true); QStringList listC4Folder(const QString &path); + void ircSetIngameChannelTopic(); void addCommand(const QString& name, CmdFunction func, int interfaces = Clonk | IRC, UserType userType = User, const QString& shortDescription = "", const QString &argList = "", const QString &longDescription = ""); bool cmdExists(const QString& name, ClientInterface interface); -- cgit v1.2.3-54-g00ecf