From 0e0593acc8509b82425d91d2607c12871f03f786 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 28 Mar 2015 14:29:06 +0100 Subject: scenarios.lst now supports --league, to activate league for a specific scenario in the autohosting list. --- ClientInfo.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ClientInfo.hpp') diff --git a/ClientInfo.hpp b/ClientInfo.hpp index a9010eb..9c39c44 100644 --- a/ClientInfo.hpp +++ b/ClientInfo.hpp @@ -3,6 +3,7 @@ #include enum ClientInterface { + Auto = 0, Clonk = 1, IRC = 1 << 1, Management = 1 << 2 @@ -66,6 +67,13 @@ public: return ret; } + static inline ClientInfo autoClient() + { + ClientInfo ret; + ret.interface = Auto; + return ret; + } + inline bool operator==(const ClientInfo& other) { return other.interface == interface && other.nick == nick && (interface == Clonk ? other.pcName == pcName && other.CUID == CUID : true); @@ -78,6 +86,6 @@ public: inline QString toString() const { - return (!nick.isEmpty() ? nick + (interface == Clonk ? " (" + pcName + ")" : " (IRC)") : ""); + return interface == Auto ? "~auto~" : interface == Management ? management.name + " {CLI}" : (!nick.isEmpty() ? nick + (interface == Clonk ? " (" + pcName + ")" : " [IRC]") : ""); } }; -- cgit v1.2.3-54-g00ecf