summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-10-16 02:37:57 +0100
committerPeter Powell <petpow@saberuk.com>2017-10-18 18:38:30 +0100
commit020c1d6ea658956e7cb2462a748790a4f4e30787 (patch)
treef06c01791ddf214d27a2b682da5ac41ed99d70c3 /src/modules/m_spanningtree
parentee7ac5aaede95eb82ecc948d0e52ad01ddeaa6c9 (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.cpp5
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)
{