From 0ff48e1538d8cc694e045775531ee075a319cb8a Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 7 Jul 2013 23:13:29 -0400 Subject: Move op/deop/etc back to an actual command, its too hard to use cs_log with it as rewrites. Allow cs_log to work with either command names or service names. --- include/logger.h | 4 ++-- include/modules/cs_log.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/logger.h b/include/logger.h index b97839732..b24d7bbd6 100644 --- a/include/logger.h +++ b/include/logger.h @@ -55,14 +55,14 @@ class CoreExport Log public: /* Bot that should log this message */ const BotInfo *bi; - /* For commands, the user executing the command */ - Anope::string nick; /* For commands, the user executing the command, but might not always exist */ const User *u; /* For commands, the account executing teh command, but will not always exist */ const NickCore *nc; /* For commands, the command being executed */ Command *c; + /* For commands, the command source */ + CommandSource *source; /* Used for LOG_CHANNEL */ Channel *chan; /* For commands, the channel the command was executed on, will not always exist */ diff --git a/include/modules/cs_log.h b/include/modules/cs_log.h index 555a44e50..de3a75aa8 100644 --- a/include/modules/cs_log.h +++ b/include/modules/cs_log.h @@ -22,6 +22,7 @@ struct LogSetting Anope::string creator; time_t created; + virtual ~LogSetting() { } protected: LogSetting() { } }; @@ -36,6 +37,7 @@ struct LogSettings : Serialize::Checker > } public: + virtual ~LogSettings() { } virtual LogSetting *Create() = 0; }; -- cgit