From b817341e2149af163011cce47605ae17b4f67eeb Mon Sep 17 00:00:00 2001 From: aquanight Date: Mon, 5 May 2008 02:06:59 +0000 Subject: Conversions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9628 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_sapart.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_sapart.cpp') diff --git a/src/modules/m_sapart.cpp b/src/modules/m_sapart.cpp index 999676f19..7f5135970 100644 --- a/src/modules/m_sapart.cpp +++ b/src/modules/m_sapart.cpp @@ -27,7 +27,7 @@ class CommandSapart : public Command TRANSLATE4(TR_NICK, TR_TEXT, TR_TEXT, TR_END); } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector& parameters, User *user) { User* dest = ServerInstance->FindNick(parameters[0]); Channel* channel = ServerInstance->FindChan(parameters[1]); @@ -35,8 +35,8 @@ class CommandSapart : public Command if (dest && channel) { - ServerInstance->Logs->Log("m_sapart",DEBUG, "SAPART: pcnt is %d", pcnt); - if (pcnt == 3) + ServerInstance->Logs->Log("m_sapart",DEBUG, "SAPART: pcnt is %d", parameters.size()); + if (parameters.size() == 3) reason = parameters[2]; else reason = dest->nick; @@ -70,7 +70,7 @@ class CommandSapart : public Command } else { - user->WriteServ("NOTICE %s :*** Unable to make %s part %s",user->nick, dest->nick, parameters[1]); + user->WriteServ("NOTICE %s :*** Unable to make %s part %s",user->nick, dest->nick, parameters[1].c_str()); return CMD_FAILURE; } } -- cgit v1.2.3