mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +01:00
Bug-fixes to recent commits
This commit is contained in:
parent
2509bcec64
commit
67e0833f93
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user