summaryrefslogtreecommitdiffstats
path: root/lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-10-31 02:37:02 -0500
committerJesse Luehrs <doy@tozt.net>2009-10-31 02:37:02 -0500
commitc124d12dd54c2ec6525a1b90e5c584988894e83b (patch)
treee0b31310d5c1f722b420534091d44bba70ed330b /lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm
parent72ea018ebf9e31f8249a43f2b0aeb57b6facb6e3 (diff)
downloadim-engine-plugin-commands-c124d12dd54c2ec6525a1b90e5c584988894e83b.tar.gz
im-engine-plugin-commands-c124d12dd54c2ec6525a1b90e5c584988894e83b.zip
convert !cmdlist into a default plugin rather than hardcoding it
Diffstat (limited to 'lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm')
-rw-r--r--lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm b/lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm
new file mode 100644
index 0000000..6d9444a
--- /dev/null
+++ b/lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm
@@ -0,0 +1,11 @@
+package IM::Engine::Plugin::Commands::Command::Cmdlist;
+use IM::Engine::Plugin::Commands::OO;
+
+sub init {
+ my $self = shift;
+ $self->is_active(0);
+ return join ' ', map { $self->_ime_plugin->prefix . $_}
+ $self->_ime_plugin->command_list;
+}
+
+1;