summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-27 00:39:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-27 00:39:47 +0000
commitc7782ce7cc6f62e34020e3f652c78d48deb3012b (patch)
tree7b01c5f3566b44789c2fc49372f48c3282746646 /src/modules/m_spanningtree.cpp
parentc50e5893c7a3e91f52c4cb86306dd45474eb20ef (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/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp16
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> &params, std::string target);
bool DoOneToAllButSender(std::string prefix, std::string command, std::deque<std::string> &params, std::string omit);
+bool DoOneToAllButSender(const char* prefix, const char* command, std::deque<std::string> &params, std::string omit);
bool DoOneToMany(std::string prefix, std::string command, std::deque<std::string> &params);
+bool DoOneToMany(const char* prefix, const char* command, std::deque<std::string> &params);
bool DoOneToAllButSenderRaw(std::string data, std::string omit, std::string prefix, irc::string command, std::deque<std::string> &params);
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> &params)
+{
+ 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> &params, 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> &params, std::string target)
{
TreeServer* Route = BestRouteTo(target);