diff options
| -rw-r--r-- | TODO | 7 | ||||
| -rw-r--r-- | src/core/cs_set.c | 2 | ||||
| -rw-r--r-- | src/core/cs_status.c | 5 |
3 files changed, 3 insertions, 11 deletions
@@ -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; |
