mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
Show "global" if namespace is ".*"
This commit is contained in:
parent
9f265a0f0e
commit
04f47ba3a1
@ -131,6 +131,8 @@ sub factset {
|
||||
}
|
||||
}
|
||||
|
||||
$channel = '.*' if $channel !~ /^#/;
|
||||
|
||||
my ($owner_channel, $owner_trigger) = $self->{pbot}->{factoids}->find_factoid($channel, $trigger, undef, 1);
|
||||
|
||||
if(defined $owner_channel) {
|
||||
@ -176,6 +178,8 @@ sub factunset {
|
||||
}
|
||||
}
|
||||
|
||||
$channel = '.*' if $channel !~ /^#/;
|
||||
|
||||
my ($owner_channel, $owner_trigger) = $self->{pbot}->{factoids}->find_factoid($channel, $trigger, undef, 1);
|
||||
|
||||
if(defined $owner_channel) {
|
||||
@ -372,6 +376,9 @@ sub factmove {
|
||||
|
||||
$self->{pbot}->{factoids}->save_factoids;
|
||||
|
||||
$found_src_channel = 'global' if $found_src_channel eq '.*';
|
||||
$target_channel = 'global' if $target_channel eq '.*';
|
||||
|
||||
if($src_channel eq $target_channel) {
|
||||
return "[$found_src_channel] $found_source renamed to $target";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user