diff options
author | Adam <Adam@anope.org> | 2017-01-27 08:40:26 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-01-27 08:40:26 -0500 |
commit | 9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (patch) | |
tree | 618a4f0e173166e6f966a7cce78f06c3c1c3299f /modules/botserv/assign.cpp | |
parent | 16ca76c2e7ab287e480185fbb03a0bb438351eda (diff) |
Store CommandInfo in CommandSource instead of just command/permission
Diffstat (limited to 'modules/botserv/assign.cpp')
-rw-r--r-- | modules/botserv/assign.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/botserv/assign.cpp b/modules/botserv/assign.cpp index db368c75e..bb2d35879 100644 --- a/modules/botserv/assign.cpp +++ b/modules/botserv/assign.cpp @@ -96,7 +96,7 @@ class CommandBSAssign : public Command "Example:\n" " {command} #anope Botox\n" " Assigns the bot Botox to #anope.\n"), - "ASSIGN", "command"_kw = source.command); + "ASSIGN", "command"_kw = source.GetCommand()); return true; } }; @@ -164,7 +164,7 @@ class CommandBSUnassign : public Command "Example:\n" " {command} #anope\n" " Unassigns the current bot from #anope.\n"), - "ASSIGN", "command"_kw = source.command); + "ASSIGN", "command"_kw = source.GetCommand()); return true; } }; @@ -208,7 +208,7 @@ class CommandBSSetNoBot : public Command } else { - this->OnSyntaxError(source, source.command); + this->OnSyntaxError(source, source.GetCommand()); } } @@ -220,7 +220,7 @@ class CommandBSSetNoBot : public Command "Example:\n" " {command} #anope on\n" " Prevents a service bot from being assigned to #anope.\n"), - "command"_kw = source.command); + "command"_kw = source.GetCommand()); return true; } }; |