diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-07-04 21:34:13 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-04-12 21:03:04 +0200 |
commit | f4cd5fb72ad191a3708d3d39a4fc74cc1ae4377e (patch) | |
tree | 46024e82c3dd201423e102bd7efe4f7a33524048 /src/modules/m_spanningtree/away.cpp | |
parent | 9c2e2ef9d24c348f42261d32f424ad04865b19ef (diff) |
m_spanningtree atoi() to ConvToInt() conversion, add const where possible
Remove two redundant functions from Utils
Diffstat (limited to 'src/modules/m_spanningtree/away.cpp')
-rw-r--r-- | src/modules/m_spanningtree/away.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/away.cpp b/src/modules/m_spanningtree/away.cpp index ed97c48cd..a36c202c7 100644 --- a/src/modules/m_spanningtree/away.cpp +++ b/src/modules/m_spanningtree/away.cpp @@ -34,7 +34,7 @@ bool TreeSocket::Away(const std::string &prefix, parameterlist ¶ms) 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(); |