diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-26 14:13:13 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-26 14:13:13 +0000 |
commit | 6d03943426dcce76ba66567a9b18425a5ebb4c0c (patch) | |
tree | bedffa6d2a65a9ef556405224a6d7a181c8a1ba5 /src/modules/extra/m_regex_posix.cpp | |
parent | 810c662c9b55908101ca085293c52c3239ef22d1 (diff) |
Remove InspIRCd* parameters and fields
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_regex_posix.cpp')
-rw-r--r-- | src/modules/extra/m_regex_posix.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/modules/extra/m_regex_posix.cpp b/src/modules/extra/m_regex_posix.cpp index 34a7e9bab..5fe4db29f 100644 --- a/src/modules/extra/m_regex_posix.cpp +++ b/src/modules/extra/m_regex_posix.cpp @@ -34,7 +34,7 @@ private: regex_t regbuf; public: - POSIXRegex(const std::string& rx, InspIRCd* Me, bool extended) : Regex(rx, Me) + POSIXRegex(const std::string& rx, bool extended) : Regex(rx, Me) { int flags = (extended ? REG_EXTENDED : 0) | REG_NOSUB; int errcode; @@ -76,11 +76,10 @@ class ModuleRegexPOSIX : public Module private: bool extended; public: - ModuleRegexPOSIX(InspIRCd* Me) : Module(Me) - { - Me->Modules->PublishInterface("RegularExpression", this); + ModuleRegexPOSIX() { + ServerInstance->Modules->PublishInterface("RegularExpression", this); Implementation eventlist[] = { I_OnRequest, I_OnRehash }; - Me->Modules->Attach(eventlist, this, 2); + ServerInstance->Modules->Attach(eventlist, this, 2); OnRehash(NULL); } @@ -96,7 +95,7 @@ public: virtual void OnRehash(User* u) { - ConfigReader Conf(ServerInstance); + ConfigReader Conf; extended = Conf.ReadFlag("posix", "extended", 0); } |