From c124d12dd54c2ec6525a1b90e5c584988894e83b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 31 Oct 2009 02:37:02 -0500 Subject: convert !cmdlist into a default plugin rather than hardcoding it --- lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm (limited to 'lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm') 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; -- cgit v1.2.3-54-g00ecf