]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/away.cpp
m_spanningtree Introduce new function to send channel messages
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / away.cpp
index ed97c48cdfe7c9e49b055cd8c943fa9d79d0935b..a36c202c74967dec1df46f870705b391e560be57 100644 (file)
@@ -34,7 +34,7 @@ bool TreeSocket::Away(const std::string &prefix, parameterlist &params)
                FOREACH_MOD(I_OnSetAway, OnSetAway(u, params[params.size() - 1]));
 
                if (params.size() > 1)
-                       u->awaytime = atoi(params[0].c_str());
+                       u->awaytime = ConvToInt(params[0]);
                else
                        u->awaytime = ServerInstance->Time();