diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 02:43:28 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 02:43:28 +0000 |
commit | bf5a8dc97fd0e8dee0d0a1946d4fcd31bebb4a24 (patch) | |
tree | 454b870edd7dfc3f83d84f2659c557cd61af1a5f /src/modules/m_watch.cpp | |
parent | e95f77bc9981b3e232899e8ff5e7d140efed92b7 (diff) |
Convertions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9634 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_watch.cpp')
-rw-r--r-- | src/modules/m_watch.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index 19521dba6..ddb6f2667 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -110,7 +110,7 @@ class CommandSVSWatch : public Command TRANSLATE3(TR_NICK, TR_TEXT, TR_END); /* we watch for a nick. not a UID. */ } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector<std::string> ¶meters, User *user) { if (!ServerInstance->ULine(user->server)) return CMD_FAILURE; @@ -121,7 +121,7 @@ class CommandSVSWatch : public Command if (IS_LOCAL(u)) { - ServerInstance->Parser->CallHandler("WATCH", ¶meters[1], 1, u); + ServerInstance->Parser->CallHandler("WATCH", parameters, u); } return CMD_SUCCESS; @@ -261,9 +261,9 @@ class CommandWatch : public Command TRANSLATE2(TR_TEXT, TR_END); /* we watch for a nick. not a UID. */ } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector<std::string> ¶meters, User *user) { - if (!pcnt) + if (!parameters.size()) { watchlist* wl; if (user->GetExt("watchlist", wl)) @@ -276,11 +276,11 @@ class CommandWatch : public Command } user->WriteNumeric(607, "%s :End of WATCH list",user->nick); } - else if (pcnt > 0) + else if (parameters.size() > 0) { - for (int x = 0; x < pcnt; x++) + for (int x = 0; x < (int)parameters.size(); x++) { - const char *nick = parameters[x]; + const char *nick = parameters[x].c_str(); if (!strcasecmp(nick,"C")) { // watch clear |