Permalink
Browse files

Fixed echo

  • Loading branch information...
1 parent 8624868 commit b40343a7987ee5bc89ba3488eb4420c3973ba729 @tadzik committed Aug 17, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 xmpbot/Plugin/Echo.pm
View
@@ -4,12 +4,10 @@ with 'xmpbot::Plugin';
sub BUILD {
my $self = shift;
- $self->command('echo');
- $self->description('echoes what was said');
- $self->help('This plugin simply retypes what the user said');
+ $self->register_command('echo');
}
-sub msg_cb {
+sub echo {
my ($self, $msg) = @_;
return $msg;
}

0 comments on commit b40343a

Please sign in to comment.