diff options
author | aquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 02:06:59 +0000 |
---|---|---|
committer | aquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 02:06:59 +0000 |
commit | b817341e2149af163011cce47605ae17b4f67eeb (patch) | |
tree | a347cf649563bf5f1f5de40f7514a5ded48c7c32 /src/modules/m_opermodes.cpp | |
parent | dfaa7b4e52e2cfbff79ab9ecad9904a07512b370 (diff) |
Conversions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9628 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_opermodes.cpp')
-rw-r--r-- | src/modules/m_opermodes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp index 877b9b441..8a91c3569 100644 --- a/src/modules/m_opermodes.cpp +++ b/src/modules/m_opermodes.cpp @@ -100,7 +100,8 @@ class ModuleModesOnOper : public Module tokens.push_back(buf); int size = tokens.size() + 1; - const char** modes = new const char*[size]; + std::vector<std::string> modes(size); + modes.resize(size); modes[0] = u->nick; // process mode params @@ -116,8 +117,7 @@ class ModuleModesOnOper : public Module n.push_back(modes[j]); ServerInstance->PI->SendMode(u->uuid, n); - ServerInstance->SendMode(modes, size, u); - delete [] modes; + ServerInstance->SendMode(modes, u); } }; |