3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01:00

Bug-fixes to recent commits

This commit is contained in:
Pragmatic Software 2013-07-30 13:12:21 +00:00
parent 2509bcec64
commit 67e0833f93
4 changed files with 5 additions and 2 deletions

View File

@ -64,6 +64,8 @@ sub get_baninfo {
my ($self, $mask, $channel, $account) = @_;
my ($bans, $ban_account);
$account = lc $account if defined $account;
foreach my $mode (keys %{ $self->{banlist}{$channel} }) {
foreach my $banmask (keys %{ $self->{banlist}{$channel}{$mode} }) {
my $banmask_key = $banmask;

View File

@ -65,6 +65,7 @@ sub ban_user {
return "" if $target =~ /\Q$self->{pbot}->botnick\E/i;
$self->{pbot}->chanops->ban_user_timed($target, $from, $length);
return "/msg $nick $target banned in $from for $length seconds";
}
sub unban_user {

View File

@ -941,7 +941,7 @@ sub parse {
$type = lc $type;
# fix splitting of IPv6 hostnames in modes -- pragma- 2013/07/30
if($type eq "mode" and $#stuff > -1) {
if($type eq "mode" and $#stuff > -1 and length $line) {
my @other_stuff = split /\s+/, $line;
$stuff[$#stuff] .= ':' . shift @other_stuff;
push @stuff, @other_stuff;

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 415,
BUILD_REVISION => 416,
BUILD_DATE => "2013-07-30",
};