summaryrefslogtreecommitdiff
path: root/src/modules/m_services.cpp
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-05 02:06:59 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-05 02:06:59 +0000
commitb817341e2149af163011cce47605ae17b4f67eeb (patch)
treea347cf649563bf5f1f5de40f7514a5ded48c7c32 /src/modules/m_services.cpp
parentdfaa7b4e52e2cfbff79ab9ecad9904a07512b370 (diff)
Conversions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9628 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_services.cpp')
-rw-r--r--src/modules/m_services.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp
index 669a87aeb..bcac36b60 100644
--- a/src/modules/m_services.cpp
+++ b/src/modules/m_services.cpp
@@ -140,11 +140,12 @@ class ModuleServices : public Module
/* On nickchange, if they have +r, remove it */
if (user->IsModeSet('r') && irc::string(user->nick) != oldnick)
{
- const char* modechange[2];
+ std::vector<std::string> modechange;
+ modechange.resize(2);
modechange[0] = user->nick;
modechange[1] = "-r";
kludgeme = true;
- ServerInstance->SendMode(modechange,2,user);
+ ServerInstance->SendMode(modechange,user);
kludgeme = false;
}
}