3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

Move some responses from /msg to public

This commit is contained in:
Pragmatic Software 2014-06-01 21:32:32 +00:00
parent 33765c6d3a
commit eec2433906
2 changed files with 7 additions and 7 deletions

View File

@ -64,24 +64,24 @@ sub add {
my ($self, $from, $nick, $user, $host, $arguments) = @_;
if(not defined $arguments or not length $arguments) {
return "/msg $nick Usage: chanadd <channel>";
return "Usage: chanadd <channel>";
}
my $hash = {};
$hash->{enabled} = 1;
$hash->{chanop} = 0;
return "/msg $nick " . $self->{channels}->add($arguments, $hash);
return $self->{channels}->add($arguments, $hash);
}
sub remove {
my ($self, $from, $nick, $user, $host, $arguments) = @_;
if(not defined $arguments or not length $arguments) {
return "/msg $nick Usage: chanrem <channel>";
return "Usage: chanrem <channel>";
}
return "/msg $nick " . $self->{channels}->remove($arguments);
return $self->{channels}->remove($arguments);
}
sub list {
@ -97,7 +97,7 @@ sub list {
}
$result .= " }\n";
}
return "/msg $nick $result";
return $result;
}
sub load_channels {

View File

@ -13,8 +13,8 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 611,
BUILD_DATE => "2014-05-31",
BUILD_REVISION => 613,
BUILD_DATE => "2014-06-01",
};
1;