From a512f7cdd7e5f9d2e408b77cc41b526a604d60f8 Mon Sep 17 00:00:00 2001 From: rburchell Date: Wed, 11 Feb 2009 23:59:58 +0000 Subject: [PATCH] cs_help, cs_identify, cs_info, cs_invite audited. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2019 5417fbe8-f217-4b02-8779-1006273d7864 --- TODO | 4 ---- src/core/cs_info.c | 4 ++-- src/core/cs_invite.c | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/TODO b/TODO index 0f1c0b98a..2a4b1a804 100644 --- a/TODO +++ b/TODO @@ -46,10 +46,6 @@ Legend: [ ] HelpServ must die (1.9.1?) [-] Command parser cleanup: mod_current_buffer needs to go away and be replaced by a proper parser. Commands should then indicate how they want the buffer split. These all need reviewing, remove them from the list _AS YOU GO_. Talk t0 w00t or CBX if you don't know what this is for: - src/core/cs_help.c - src/core/cs_identify.c - src/core/cs_info.c - src/core/cs_invite.c src/core/cs_kick.c src/core/cs_list.c src/core/cs_logout.c diff --git a/src/core/cs_info.c b/src/core/cs_info.c index 0c3e4303d..3f2da5200 100644 --- a/src/core/cs_info.c +++ b/src/core/cs_info.c @@ -48,8 +48,8 @@ class CommandCSInfo : public Command CommandReturn Execute(User *u, std::vector ¶ms) { - char *chan = strtok(NULL, " "); - char *param = strtok(NULL, " "); + const char *chan = params[0].c_str(); + const char *param = params.size() > 1 ? params[1].c_str() : NULL; ChannelInfo *ci; char buf[BUFSIZE]; struct tm *tm; diff --git a/src/core/cs_invite.c b/src/core/cs_invite.c index 986d1d815..ee4869b1b 100644 --- a/src/core/cs_invite.c +++ b/src/core/cs_invite.c @@ -65,6 +65,7 @@ class CommandCSInvite : public Command } ircdproto->SendInvite(whosends(ci), chan, u->nick); + // XXX: maybe send a message about it succeeding. return MOD_CONT; }