diff options
author | Adam <Adam@anope.org> | 2013-08-01 13:16:18 +0000 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-08-01 13:39:35 +0000 |
commit | 1e625b6837fdf96616cfc49700aa28d184a7c171 (patch) | |
tree | 6b6f06deaf769dd6b1a7853f90d26183828986f1 /include/logger.h | |
parent | 402c624e455d13cc811bef2e8d1639846e892a34 (diff) |
Use MessageSource as the source for many IRCDProto funcs
Keep track of what user modes are oper only/server only/etc
Diffstat (limited to 'include/logger.h')
-rw-r--r-- | include/logger.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/logger.h b/include/logger.h index b24d7bbd6..8bba26aeb 100644 --- a/include/logger.h +++ b/include/logger.h @@ -54,11 +54,11 @@ class CoreExport Log { public: /* Bot that should log this message */ - const BotInfo *bi; + BotInfo *bi; /* 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; + User *u; + /* For commands, the account executing the command, but will not always exist */ + NickCore *nc; /* For commands, the command being executed */ Command *c; /* For commands, the command source */ @@ -76,21 +76,21 @@ class CoreExport Log std::stringstream buf; - Log(LogType type = LOG_NORMAL, const Anope::string &category = "", const BotInfo *bi = NULL); + Log(LogType type = LOG_NORMAL, const Anope::string &category = "", BotInfo *bi = NULL); /* LOG_COMMAND/OVERRIDE/ADMIN */ - Log(LogType type, CommandSource &source, Command *c, const ChannelInfo *ci = NULL); + Log(LogType type, CommandSource &source, Command *c, ChannelInfo *ci = NULL); /* LOG_CHANNEL */ - Log(const User *u, Channel *c, const Anope::string &category = ""); + Log(User *u, Channel *c, const Anope::string &category = ""); /* LOG_USER */ - explicit Log(const User *u, const Anope::string &category = "", const BotInfo *bi = NULL); + Log(User *u, const Anope::string &category = "", BotInfo *bi = NULL); /* LOG_SERVER */ - explicit Log(Server *s, const Anope::string &category = "", const BotInfo *bi = NULL); + Log(Server *s, const Anope::string &category = "", BotInfo *bi = NULL); - explicit Log(const BotInfo *b, const Anope::string &category = ""); + Log(BotInfo *b, const Anope::string &category = ""); Log(Module *m, const Anope::string &category = ""); |