From 6a5179995a92d406b5481cd0f0fab2cd643ea18b Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 6 Dec 2005 13:03:25 +0000 Subject: Cant pass std::string to atoi(), DOH! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2218 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src') 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 params); void ReadConfiguration(bool rebind); +extern std::vector klines; +extern std::vector glines; +extern std::vector zlines; +extern std::vector qlines; +extern std::vector 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... */ -- cgit v1.2.3