From 17f7b056e90cac05cfeb3f655ce815957483d5b7 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 7 Apr 2004 16:18:03 +0000 Subject: Stability fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@415 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/modules.cpp') 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; } -- cgit v1.2.3