summaryrefslogtreecommitdiff
path: root/include/commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/commands.h')
-rw-r--r--include/commands.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/commands.h b/include/commands.h
index 0c8b7bae1..714d1c48d 100644
--- a/include/commands.h
+++ b/include/commands.h
@@ -106,9 +106,15 @@ class CoreExport Command : public Flags<CommandFlag>
virtual bool AddSubcommand(Command *c);
/** Delete a subcommand from this command
- * @param cname The subcommand name
+ * @param c The command
+ */
+ virtual bool DelSubcommand(Command *c);
+
+ /** Find a subcommand
+ * @param name The subcommand name
+ * @return The subcommand
*/
- virtual bool DelSubcommand(const Anope::string &cname);
+ virtual Command *FindSubcommand(const Anope::string &name);
};
#endif // COMMANDS_H