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:
parent
ec6bac8207
commit
460e7b6ffa
@ -384,7 +384,11 @@ sub userdel {
|
|||||||
|
|
||||||
sub userset {
|
sub userset {
|
||||||
my ($self, $from, $nick, $user, $host, $arguments, $stuff) = @_;
|
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);
|
my ($channel, $hostmask, $key, $value) = $self->{pbot}->{interpreter}->split_args($stuff->{arglist}, 4);
|
||||||
|
|
||||||
if (not defined $hostmask) {
|
if (not defined $hostmask) {
|
||||||
@ -425,7 +429,11 @@ sub userset {
|
|||||||
|
|
||||||
sub userunset {
|
sub userunset {
|
||||||
my ($self, $from, $nick, $user, $host, $arguments, $stuff) = @_;
|
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);
|
my ($channel, $hostmask, $key) = $self->{pbot}->{interpreter}->split_args($stuff->{arglist}, 3);
|
||||||
|
|
||||||
if (not defined $hostmask) {
|
if (not defined $hostmask) {
|
||||||
|
Loading…
Reference in New Issue
Block a user