mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
strictnamespace is now more strict
This commit is contained in:
parent
520cce7ea8
commit
4b76dbf237
@ -1097,6 +1097,7 @@ sub interpreter {
|
|||||||
my @chanlist = ();
|
my @chanlist = ();
|
||||||
my ($fwd_chan, $fwd_trig);
|
my ($fwd_chan, $fwd_trig);
|
||||||
|
|
||||||
|
unless ($strictnamespace) {
|
||||||
# build list of which channels contain the keyword, keeping track of the last one and count
|
# build list of which channels contain the keyword, keeping track of the last one and count
|
||||||
foreach my $factoid ($self->{factoids}->get_all("index2 = $original_keyword", 'index1', 'type')) {
|
foreach my $factoid ($self->{factoids}->get_all("index2 = $original_keyword", 'index1', 'type')) {
|
||||||
next if $factoid->{type} ne 'text' and $factoid->{type} ne 'module';
|
next if $factoid->{type} ne 'text' and $factoid->{type} ne 'module';
|
||||||
@ -1104,6 +1105,7 @@ sub interpreter {
|
|||||||
$fwd_chan = $factoid->{index1};
|
$fwd_chan = $factoid->{index1};
|
||||||
$fwd_trig = $original_keyword;
|
$fwd_trig = $original_keyword;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
my $ref_from = $context->{ref_from} ? "[$context->{ref_from}] " : "";
|
my $ref_from = $context->{ref_from} ? "[$context->{ref_from}] " : "";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user