3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +01:00

Users: oops, forgot about global

This commit is contained in:
Pragmatic Software 2020-01-28 23:21:50 -08:00
parent ec6bac8207
commit 460e7b6ffa

View File

@ -384,7 +384,11 @@ sub userdel {
sub userset {
my ($self, $from, $nick, $user, $host, $arguments, $stuff) = @_;
$self->{pbot}->{interpreter}->unshift_arg($stuff->{arglist}, $from) if length $arguments and $stuff->{arglist}[0] !~ m/^#/;
if (length $arguments and $stuff->{arglist}[0] !~ m/^(#|\.\*$|global$)/) {
$self->{pbot}->{interpreter}->unshift_arg($stuff->{arglist}, $from)
}
my ($channel, $hostmask, $key, $value) = $self->{pbot}->{interpreter}->split_args($stuff->{arglist}, 4);
if (not defined $hostmask) {
@ -425,7 +429,11 @@ sub userset {
sub userunset {
my ($self, $from, $nick, $user, $host, $arguments, $stuff) = @_;
$self->{pbot}->{interpreter}->unshift_arg($stuff->{arglist}, $from) if length $arguments and $stuff->{arglist}[0] !~ m/^#/;
if (length $arguments and $stuff->{arglist}[0] !~ m/^(#|\.\*$|global$)/) {
$self->{pbot}->{interpreter}->unshift_arg($stuff->{arglist}, $from)
}
my ($channel, $hostmask, $key) = $self->{pbot}->{interpreter}->split_args($stuff->{arglist}, 3);
if (not defined $hostmask) {