From: brain Date: Sun, 27 Aug 2006 00:39:47 +0000 (+0000) Subject: Overloaded char* equivalents of some core functions, will help us track down how... X-Git-Tag: v2.0.23~7306 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=c7782ce7cc6f62e34020e3f652c78d48deb3012b;p=user%2Fhenk%2Fcode%2Finspircd.git Overloaded char* equivalents of some core functions, will help us track down how the CRAP a stack-allocated std::string can be null? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5026 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 14d2ee61d..316d5b03d 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -109,7 +109,9 @@ typedef nspace::hash_map sid_hash; /* More forward declarations */ bool DoOneToOne(std::string prefix, std::string command, std::deque ¶ms, std::string target); bool DoOneToAllButSender(std::string prefix, std::string command, std::deque ¶ms, std::string omit); +bool DoOneToAllButSender(const char* prefix, const char* command, std::deque ¶ms, std::string omit); bool DoOneToMany(std::string prefix, std::string command, std::deque ¶ms); +bool DoOneToMany(const char* prefix, const char* command, std::deque ¶ms); bool DoOneToAllButSenderRaw(std::string data, std::string omit, std::string prefix, irc::string command, std::deque ¶ms); void ReadConfiguration(bool rebind); @@ -3221,6 +3223,20 @@ bool DoOneToMany(std::string prefix, std::string command, std::deque ¶ms) +{ + std::string spfx = prefix; + std::string scmd = command; + return DoOneToMany(spfx, scmd, params); +} + +bool DoOneToAllButSender(const char* prefix, const char* command, std::deque ¶ms, std::string omit) +{ + std::string spfx = prefix; + std::string scmd = command; + return DoOneToAllButSender(spfx, scmd, params, omit); +} + bool DoOneToOne(std::string prefix, std::string command, std::deque ¶ms, std::string target) { TreeServer* Route = BestRouteTo(target);