From 2e5b5731927c85b38263393276addda632f92420 Mon Sep 17 00:00:00 2001 From: rburchell Date: Thu, 12 Feb 2009 00:14:59 +0000 Subject: Auditing of remaining cs_ modules. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2021 5417fbe8-f217-4b02-8779-1006273d7864 --- TODO | 7 ------- src/core/cs_set.c | 2 +- src/core/cs_status.c | 5 ++--- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/TODO b/TODO index b21c5f42f..362487ce4 100644 --- a/TODO +++ b/TODO @@ -46,13 +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_register.c - src/core/cs_sendpass.c - src/core/cs_set.c - src/core/cs_status.c - src/core/cs_suspend.c - src/core/cs_topic.c - src/core/cs_xop.c src/core/enc_md5.c src/core/enc_none.c src/core/enc_old.c diff --git a/src/core/cs_set.c b/src/core/cs_set.c index dece501fe..669d8012f 100644 --- a/src/core/cs_set.c +++ b/src/core/cs_set.c @@ -539,7 +539,7 @@ class CommandCSSet : public Command { const char *chan = params[0].c_str(); const char *cmd = params[1].c_str(); - const char *param = params[2].c_str(); + const char *param = params.size() > 2 ? params[2].c_str() : NULL; ChannelInfo *ci; int is_servadmin = is_services_admin(u); diff --git a/src/core/cs_status.c b/src/core/cs_status.c index 34427a523..2d8a94981 100644 --- a/src/core/cs_status.c +++ b/src/core/cs_status.c @@ -28,11 +28,10 @@ class CommandCSStatus : public Command { ChannelInfo *ci; User *u2; - const char *nick, *chan; + const char *chan = params[0].c_str(); + const char *nick = params[1].c_str(); const char *temp = NULL; - chan = params[0].c_str(); - nick = params[1].c_str(); if (!(ci = cs_findchan(chan))) { temp = chan; -- cgit