summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-06 13:03:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-06 13:03:25 +0000
commit6a5179995a92d406b5481cd0f0fab2cd643ea18b (patch)
tree38e74248df79c8e205bb6fab2619adbf82b2e700
parentf905e65cd98cc45d52e74f2b17f32a791db93765 (diff)
Cant pass std::string to atoi(), DOH!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2218 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index d8289d25a..2eeff769d 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -74,6 +74,12 @@ bool DoOneToMany(std::string prefix, std::string command, std::deque<std::string
bool DoOneToAllButSenderRaw(std::string data,std::string omit, std::string prefix,std::string command,std::deque<std::string> params);
void ReadConfiguration(bool rebind);
+extern std::vector<KLine> klines;
+extern std::vector<GLine> glines;
+extern std::vector<ZLine> zlines;
+extern std::vector<QLine> qlines;
+extern std::vector<ELine> elines;
+
class TreeServer
{
TreeServer* Parent;
@@ -1034,19 +1040,19 @@ class TreeSocket : public InspSocket
switch (*(linetype.c_str()))
{
case 'Z':
- add_zline(atoi(duration), source.c_str(), reason.c_str(), mask.c_str());
+ add_zline(atoi(duration.c_str()), source.c_str(), reason.c_str(), mask.c_str());
break;
case 'Q':
- add_qline(atoi(duration), source.c_str(), reason.c_str(), mask.c_str());
+ add_qline(atoi(duration.c_str()), source.c_str(), reason.c_str(), mask.c_str());
break;
case 'E':
- add_eline(atoi(duration), source.c_str(), reason.c_str(), mask.c_str());
+ add_eline(atoi(duration.c_str()), source.c_str(), reason.c_str(), mask.c_str());
break;
case 'G':
- add_gline(atoi(duration), source.c_str(), reason.c_str(), mask.c_str());
+ add_gline(atoi(duration.c_str()), source.c_str(), reason.c_str(), mask.c_str());
break;
case 'K':
- add_kline(atoi(duration), source.c_str(), reason.c_str(), mask.c_str());
+ add_kline(atoi(duration.c_str()), source.c_str(), reason.c_str(), mask.c_str());
break;
default:
/* Just in case... */