diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-27 00:39:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-27 00:39:47 +0000 |
commit | c7782ce7cc6f62e34020e3f652c78d48deb3012b (patch) | |
tree | 7b01c5f3566b44789c2fc49372f48c3282746646 /src | |
parent | c50e5893c7a3e91f52c4cb86306dd45474eb20ef (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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<std::string, char*> sid_hash; /* More forward declarations */ bool DoOneToOne(std::string prefix, std::string command, std::deque<std::string> ¶ms, std::string target); bool DoOneToAllButSender(std::string prefix, std::string command, std::deque<std::string> ¶ms, std::string omit); +bool DoOneToAllButSender(const char* prefix, const char* command, std::deque<std::string> ¶ms, std::string omit); bool DoOneToMany(std::string prefix, std::string command, std::deque<std::string> ¶ms); +bool DoOneToMany(const char* prefix, const char* command, std::deque<std::string> ¶ms); bool DoOneToAllButSenderRaw(std::string data, std::string omit, std::string prefix, irc::string command, std::deque<std::string> ¶ms); void ReadConfiguration(bool rebind); @@ -3221,6 +3223,20 @@ bool DoOneToMany(std::string prefix, std::string command, std::deque<std::string return true; } +bool DoOneToMany(const char* prefix, const char* command, std::deque<std::string> ¶ms) +{ + std::string spfx = prefix; + std::string scmd = command; + return DoOneToMany(spfx, scmd, params); +} + +bool DoOneToAllButSender(const char* prefix, const char* command, std::deque<std::string> ¶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<std::string> ¶ms, std::string target) { TreeServer* Route = BestRouteTo(target); |