Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed echo

  • Loading branch information...
commit b40343a7987ee5bc89ba3488eb4420c3973ba729 1 parent 8624868
@tadzik authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 xmpbot/Plugin/Echo.pm
View
6 xmpbot/Plugin/Echo.pm
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.