Commit Diff
Diff:
73f72f75b48f666fdb191e2cce59997208cf6f31
e8c359cdf86ae03638ab2ed21e024f71bb61dbbd
Commit:
e8c359cdf86ae03638ab2ed21e024f71bb61dbbd
Tree:
4c1f7884ec678c9327c350ca231b754dc359704e
Author:
jrmu <jrmu@ircnow.org>
Committer:
jrmu <jrmu@ircnow.org>
Date:
Mon Nov 23 09:08:40 2020 UTC
Message:
Prevent unwanted triggers
blob - f76be7d7cadaf0730a6f7babedeeecaa5b0ea498
blob + 8c98cbde3bbf40ffad0c2572c18b9b451b448185
--- botnow.pl
+++ botnow.pl
@@ -272,7 +272,7 @@ while(my @ready = $sel->can_read) {
} else {
debug(ERRORS, "Unexpected bncnow.pl 273: $response");
}
- } elsif ($text =~ /!([[:graph:]]+)\s*(.*)/) {
+ } elsif ($text =~ /^!([[:graph:]]+)\s*(.*)/) {
my ($cmd, $text) = ($1, $2);
my $hand = $staff; # TODO fix later
if ($target =~ /^#/) {