summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-12 00:14:59 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-12 00:14:59 +0000
commit2e5b5731927c85b38263393276addda632f92420 (patch)
tree7787739ff3c2eca235aeb189f3c1fbe4ce2f4f27 /src/core
parent58b0279f7f2eda9154373af0a7d4b0cb73b1baf8 (diff)
Auditing of remaining cs_ modules.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2021 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
-rw-r--r--src/core/cs_set.c2
-rw-r--r--src/core/cs_status.c5
2 files changed, 3 insertions, 4 deletions
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;