mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 03:33:06 +01:00
Move some responses from /msg to public
This commit is contained in:
parent
33765c6d3a
commit
eec2433906
@ -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 {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user