mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 12:29:27 +01:00
Stop appending !*@* to $a:account banmasks
This commit is contained in:
parent
97bbb298e4
commit
34a653b05a
@ -120,7 +120,7 @@ sub unban_user {
|
|||||||
|
|
||||||
my $bans;
|
my $bans;
|
||||||
|
|
||||||
if ($mask !~ m/[!@]/) {
|
if ($mask !~ m/[!@\$]/) {
|
||||||
my ($message_account, $hostmask) = $self->{pbot}->{messagehistory}->{database}->find_message_account_by_nick($mask);
|
my ($message_account, $hostmask) = $self->{pbot}->{messagehistory}->{database}->find_message_account_by_nick($mask);
|
||||||
|
|
||||||
if (defined $hostmask) {
|
if (defined $hostmask) {
|
||||||
@ -150,7 +150,7 @@ sub ban_user_timed {
|
|||||||
my $self = shift;
|
my $self = shift;
|
||||||
my ($mask, $channel, $length) = @_;
|
my ($mask, $channel, $length) = @_;
|
||||||
|
|
||||||
if ($mask !~ m/[!@]/) {
|
if ($mask !~ m/[!@\$]/) {
|
||||||
my ($message_account, $hostmask) = $self->{pbot}->{messagehistory}->{database}->find_message_account_by_nick($mask);
|
my ($message_account, $hostmask) = $self->{pbot}->{messagehistory}->{database}->find_message_account_by_nick($mask);
|
||||||
if (defined $hostmask) {
|
if (defined $hostmask) {
|
||||||
my $nickserv = $self->{pbot}->{messagehistory}->{database}->get_current_nickserv_account($message_account);
|
my $nickserv = $self->{pbot}->{messagehistory}->{database}->get_current_nickserv_account($message_account);
|
||||||
|
Loading…
Reference in New Issue
Block a user