diff options
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index b2424639a..b938ebcca 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -11,6 +11,7 @@ #include "modules.h" #include "ctables.h" #include "inspircd_io.h" +#include "wildcard.h" // class type for holding an extended mode character - internal to core @@ -140,6 +141,14 @@ void Server::SendOpers(std::string s) WriteOpers("%s",s.c_str()); } +bool Server::MatchText(std::string sliteral, std::string spattern) +{ + char literal[MAXBUF],pattern[MAXBUF]; + strncpy(literal,sliteral.c_str(),MAXBUF); + strncpy(pattern,spattern.c_str(),MAXBUF); + return match(literal,pattern); +} + void Server::SendToModeMask(std::string modes, int flags, std::string text) { WriteMode(modes.c_str(),flags,"%s",text.c_str()); @@ -302,6 +311,8 @@ ConfigReader::ConfigReader() ConfigReader::~ConfigReader() { + if (this->cache) + delete this->cache; } |