From 222e912fc3e4a09bba3d9aeef815b6c364c5c71c Mon Sep 17 00:00:00 2001 From: peavey Date: Sun, 4 May 2008 23:13:23 +0000 Subject: Converting git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9619 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/u_listmode.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') 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 stackresult; - const char* mode_junk[MAXMODES+2]; + //const char* mode_junk[MAXMODES+2]; + std::vector 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); } } } -- cgit v1.2.3