3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 03:33:06 +01:00

Stop appending !*@* to $a:account banmasks

This commit is contained in:
Pragmatic Software 2015-09-03 20:44:33 -07:00
parent 97bbb298e4
commit 34a653b05a

View File

@ -120,7 +120,7 @@ sub unban_user {
my $bans;
if ($mask !~ m/[!@]/) {
if ($mask !~ m/[!@\$]/) {
my ($message_account, $hostmask) = $self->{pbot}->{messagehistory}->{database}->find_message_account_by_nick($mask);
if (defined $hostmask) {
@ -150,7 +150,7 @@ sub ban_user_timed {
my $self = shift;
my ($mask, $channel, $length) = @_;
if ($mask !~ m/[!@]/) {
if ($mask !~ m/[!@\$]/) {
my ($message_account, $hostmask) = $self->{pbot}->{messagehistory}->{database}->find_message_account_by_nick($mask);
if (defined $hostmask) {
my $nickserv = $self->{pbot}->{messagehistory}->{database}->get_current_nickserv_account($message_account);