From badcd21abb770c040dd3a842be5e21723cd82e71 Mon Sep 17 00:00:00 2001 From: rburchell Date: Wed, 11 Feb 2009 11:17:10 +0000 Subject: Make max params work correctly, and fix bs_act to request params correctly. Audited as working ok. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2013 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/bs_assign.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/bs_assign.c b/src/core/bs_assign.c index dc9dca37a..73bbd6213 100644 --- a/src/core/bs_assign.c +++ b/src/core/bs_assign.c @@ -20,14 +20,14 @@ void myBotServHelp(User * u); class CommandBSAssign : public Command { public: - CommandBSAssign() : Command("ASSIGN", 1, 1) + CommandBSAssign() : Command("ASSIGN", 2, 2) { } CommandReturn Execute(User *u, std::vector ¶ms) { - char *chan = strtok(NULL, " "); - char *nick = strtok(NULL, " "); + const char *chan = params[0].c_str(); + const char *nick = params[1].c_str(); BotInfo *bi; ChannelInfo *ci; -- cgit