summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/cs_info.c4
-rw-r--r--src/core/cs_invite.c1
2 files changed, 3 insertions, 2 deletions
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<std::string> &params)
{
- 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;
}