summaryrefslogtreecommitdiff
path: root/include/bots.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-13 22:05:30 -0500
committerAdam <Adam@anope.org>2013-01-13 22:07:27 -0500
commitda6543d17b689c31226e1b7ba1ce7de29baee2df (patch)
tree750c38fc64ac41a93c9eb539637ae029239855fd /include/bots.h
parent29a018088ecf42c870b78d1539a90776a21276ec (diff)
Allow grouping commands to make help output easier to comprehend
Diffstat (limited to 'include/bots.h')
-rw-r--r--include/bots.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/bots.h b/include/bots.h
index ba6fbaab6..afffc7689 100644
--- a/include/bots.h
+++ b/include/bots.h
@@ -122,8 +122,9 @@ class CoreExport BotInfo : public User, public Flags<BotFlag>, public Serializab
* @param cname The command name
* @param sname The service name
* @param permission Permission required to execute the command, if any
+ * @return The commandinfo for the newly created command
*/
- void SetCommand(const Anope::string &cname, const Anope::string &sname, const Anope::string &permission = "");
+ CommandInfo& SetCommand(const Anope::string &cname, const Anope::string &sname, const Anope::string &permission = "");
/** Get command info for a command
* @param cname The command name