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/opertype.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/opertype.cpp')
-rw-r--r-- | src/modules/m_spanningtree/opertype.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/opertype.cpp b/src/modules/m_spanningtree/opertype.cpp index 27c4271b8..4772e9222 100644 --- a/src/modules/m_spanningtree/opertype.cpp +++ b/src/modules/m_spanningtree/opertype.cpp @@ -29,7 +29,7 @@ CmdResult CommandOpertype::Handle(const std::vector<std::string>& params, User *u) { SpanningTreeUtilities* Utils = ((ModuleSpanningTree*)(Module*)creator)->Utils; - std::string opertype = params[0]; + const std::string& opertype = params[0]; if (!u->IsOper()) ServerInstance->Users->all_opers.push_back(u); u->modes[UM_OPERATOR] = 1; |