summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/pluginhost.php')
-rw-r--r--classes/pluginhost.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index 5f584cd00..a6ba72fc6 100644
--- a/classes/pluginhost.php
+++ b/classes/pluginhost.php
@@ -172,10 +172,12 @@ class PluginHost {
return false;
}
- function add_command($command, $description, $sender) {
+ function add_command($command, $description, $sender, $suffix = "", $arghelp = "") {
$command = str_replace("-", "_", strtolower($command));
$this->commands[$command] = array("description" => $description,
+ "suffix" => $suffix,
+ "arghelp" => $arghelp,
"class" => $sender);
}