diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-10-31 02:37:02 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-10-31 02:37:02 -0500 |
commit | c124d12dd54c2ec6525a1b90e5c584988894e83b (patch) | |
tree | e0b31310d5c1f722b420534091d44bba70ed330b /lib/IM/Engine/Plugin/Commands/Command | |
parent | 72ea018ebf9e31f8249a43f2b0aeb57b6facb6e3 (diff) | |
download | im-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')
-rw-r--r-- | lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm | 11 |
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; |