mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-23 02:24:25 +01:00
!chanset output appears in channel instead of /msg
This commit is contained in:
parent
e0a2fc25e8
commit
6c6fc503bb
@ -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 {
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user