summaryrefslogtreecommitdiff
path: root/include/modules/redis.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-01-23 12:35:14 -0500
committerAdam <Adam@anope.org>2017-01-23 12:35:14 -0500
commit16ca76c2e7ab287e480185fbb03a0bb438351eda (patch)
treedfb25534afa2352b65b2ee707086cb5eecc96fbb /include/modules/redis.h
parentff030c1eb7c3764f9add2a689479e84d616cabcb (diff)
Make log system use newer format strings
Also allow log messages to be translatable
Diffstat (limited to 'include/modules/redis.h')
-rw-r--r--include/modules/redis.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/modules/redis.h b/include/modules/redis.h
index dc8c1e75f..c26ad194f 100644
--- a/include/modules/redis.h
+++ b/include/modules/redis.h
@@ -54,14 +54,16 @@ namespace Redis
class Interface
{
- public:
Module *owner;
+ public:
Interface(Module *m) : owner(m) { }
virtual ~Interface() = default;
+ Module *GetOwner() const { return owner; }
+
virtual void OnResult(const Reply &r) anope_abstract;
- virtual void OnError(const Anope::string &error) { Log(owner) << error; }
+ virtual void OnError(const Anope::string &error) { owner->logger.Log(error); }
};
class FInterface : public Interface