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_sapart.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_sapart.cpp')
-rw-r--r-- | src/modules/m_sapart.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<std::string>& 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; } } |