X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Fserver.cpp;h=bc97c097b2d8c2ae9b3a0f780c5d4cd14816196f;hb=da28fe0b8c0bec9ab111044b1004f24cbf2d742e;hp=d266b31f41d1ec5ab6a68a57e34ee9eab28b470e;hpb=645f7e18c64a6628ede880dc69bf8825ba93b375;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/server.cpp b/src/modules/m_spanningtree/server.cpp index d266b31f4..bc97c097b 100644 --- a/src/modules/m_spanningtree/server.cpp +++ b/src/modules/m_spanningtree/server.cpp @@ -105,7 +105,7 @@ bool TreeSocket::Outbound_Reply_Server(parameterlist ¶ms) std::string password = params[1]; std::string sid = params[3]; std::string description = params[4]; - int hops = atoi(params[2].c_str()); + int hops = ConvToInt(params[2]); this->SendCapabilities(2); @@ -197,7 +197,7 @@ bool TreeSocket::Inbound_Server(parameterlist ¶ms) std::string password = params[1]; std::string sid = params[3]; std::string description = params[4]; - int hops = atoi(params[2].c_str()); + int hops = ConvToInt(params[2]); this->SendCapabilities(2);