summaryrefslogtreecommitdiff
path: root/include/modules/chanserv
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules/chanserv')
-rw-r--r--include/modules/chanserv/channel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/modules/chanserv/channel.h b/include/modules/chanserv/channel.h
index a3b06b350..aab95de67 100644
--- a/include/modules/chanserv/channel.h
+++ b/include/modules/chanserv/channel.h
@@ -25,12 +25,12 @@ namespace ChanServ
class CoreExport Channel : public Serialize::Object
{
public:
- ::Channel *c = nullptr; /* Pointer to channel, if the channel exists */
-
static constexpr const char *const NAME = "channel";
using Serialize::Object::Object;
+ ::Channel *GetChannel() { return ::Channel::Find(GetName()); }
+
virtual Anope::string GetName() anope_abstract;
virtual void SetName(const Anope::string &) anope_abstract;