From e4ccb9c3e8baae8632d52ec7158f64eabc2b4d76 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Tue, 10 Nov 2015 21:48:29 +0100 Subject: Add logging --- src/crsm.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/crsm.hpp') diff --git a/src/crsm.hpp b/src/crsm.hpp index 5130578..0e352f5 100644 --- a/src/crsm.hpp +++ b/src/crsm.hpp @@ -24,6 +24,7 @@ #include "CRSMConfig.hpp" #include "CRSMStats.hpp" #include "CRSMPackCompatibility.hpp" +#include "CRSMLogging.hpp" #define CONFIG_FILE_NAME "CrServerManager.conf" #define SESSION_FILE_NAME "CrServerManager.session" @@ -195,6 +196,7 @@ private: CRSMSession Session; CRSMStats Stats; CRSMPackCompatibility Packs; + CRSMLogging Log; QList userlist; QList autolist; @@ -208,13 +210,11 @@ private: QString aliasWishEditor = ""; QString currentAliasWish = ""; int current; - QTextStream *qout; bool finish; IrcConnection *connection = 0; bool autoHost = true; QSignalMapper greetMapper; QFile *logfile; - QTextStream logstream; QTextCodec *codec; QStringList ircModIOList; QList ircModWatchList; @@ -292,6 +292,8 @@ private: bool isChannelName(const QString& name); void removeCommandSuffixes(QString& command); void substituteCommandAlias(QString& command); + QString clientModName(const ClientInfo& client); + void sendIrcMessage(const QString& message, const QString& target, bool action, bool notice); CMD_FUNCTION(help); CMD_FUNCTION(passToClonk); -- cgit v1.2.3-54-g00ecf