diff options
author | Peter Powell <petpow@saberuk.com> | 2017-10-16 02:37:57 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-10-18 18:38:30 +0100 |
commit | 020c1d6ea658956e7cb2462a748790a4f4e30787 (patch) | |
tree | f06c01791ddf214d27a2b682da5ac41ed99d70c3 /src/modules/m_spanningtree | |
parent | ee7ac5aaede95eb82ecc948d0e52ad01ddeaa6c9 (diff) |
Add a constructor to OperInfo and use it to set the type name.
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/opertype.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/opertype.cpp b/src/modules/m_spanningtree/opertype.cpp index ab531c171..b1d0c327e 100644 --- a/src/modules/m_spanningtree/opertype.cpp +++ b/src/modules/m_spanningtree/opertype.cpp @@ -39,10 +39,7 @@ CmdResult CommandOpertype::HandleRemote(RemoteUser* u, std::vector<std::string>& if (iter != ServerInstance->Config->OperTypes.end()) u->oper = iter->second; else - { - u->oper = new OperInfo; - u->oper->name = opertype; - } + u->oper = new OperInfo(opertype); if (Utils->quiet_bursts) { |