!chanset output appears in channel instead of /msg

This commit is contained in:
Pragmatic Software 2010-06-23 02:22:08 +00:00
parent e0a2fc25e8
commit 6c6fc503bb
2 changed files with 5 additions and 5 deletions

View File

@ -50,10 +50,10 @@ sub set {
my ($channel, $key, $value) = split / /, $arguments, 3;
if(not defined $channel) {
return "/msg $nick Usage: chanset <channel> [[key] <value>]";
return "Usage: chanset <channel> [key <value>]";
}
return "/msg $nick " . $self->channels->set($channel, $key, $value);
return $self->channels->set($channel, $key, $value);
}
sub unset {
@ -61,10 +61,10 @@ sub unset {
my ($channel, $key) = split / /, $arguments;
if(not defined $channel or not defined $key) {
return "/msg $nick Usage: chanunset <channel> <key>";
return "Usage: chanunset <channel> <key>";
}
return "/msg $nick " . $self->channels->unset($channel, $key);
return "msg $nick " . $self->channels->unset($channel, $key);
}
sub add {

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 200,
BUILD_REVISION => 201,
BUILD_DATE => "2010-06-22",
};