summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-04 23:13:23 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-04 23:13:23 +0000
commit222e912fc3e4a09bba3d9aeef815b6c364c5c71c (patch)
tree4a0997e5eaf80a2115c96c5e33cd831e559d964a /include
parent72e9b7442816a4dad6f5bf6c3e9045f496788dee (diff)
Converting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9619 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/u_listmode.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h
index 6c6e2ca28..61caa7c52 100644
--- a/include/u_listmode.h
+++ b/include/u_listmode.h
@@ -176,7 +176,8 @@ class ListModeBase : public ModeHandler
{
irc::modestacker modestack(false);
std::deque<std::string> stackresult;
- const char* mode_junk[MAXMODES+2];
+ //const char* mode_junk[MAXMODES+2];
+ std::vector<std::string> mode_junk;
mode_junk[0] = channel->name;
for (modelist::iterator it = el->begin(); it != el->end(); it++)
@@ -194,10 +195,10 @@ class ListModeBase : public ModeHandler
{
for (size_t j = 0; j < stackresult.size(); j++)
{
- mode_junk[j+1] = stackresult[j].c_str();
+ mode_junk[j+1] = stackresult[j];
}
- ServerInstance->SendMode(mode_junk, stackresult.size() + 1, ServerInstance->FakeClient);
+ ServerInstance->SendMode(mode_junk, ServerInstance->FakeClient);
}
}
}