summaryrefslogtreecommitdiff
path: root/src/core/bs_assign.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-11 11:17:10 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-11 11:17:10 +0000
commitbadcd21abb770c040dd3a842be5e21723cd82e71 (patch)
tree9c8377c940a5d00b828591153147407713e20649 /src/core/bs_assign.c
parent136ea16ed8f594f8b86d3fa79337e4d7a7c573df (diff)
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
Diffstat (limited to 'src/core/bs_assign.c')
-rw-r--r--src/core/bs_assign.c6
1 files changed, 3 insertions, 3 deletions
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<std::string> &params)
{
- 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;