]> git.99rst.org Git - irssi-scripts.irssi.org.git/commit
Fix network matching for query subcommand
authormartin f. krafft <redacted>
Thu, 23 Feb 2017 18:33:08 +0000 (07:33 +1300)
committermartin f. krafft <redacted>
Thu, 23 Feb 2017 18:44:45 +0000 (07:44 +1300)
commit74c036b5a725d8d268ea62ace595bce9d4eaf36f
tree2f4bb3fbbb9046b3caa7962d7a885537fa9b7437
parentb3a8e7731bc5e12822820efc88491e05ffe8f556
Fix network matching for query subcommand

In the absence of a network tag passed to the `query` subcommand, no
rules but the default would match and so the returned match(es) would
potentially not actually be the ones used in context of ctrlact's normal
operation.

This commit fixes #354 by special-casing the threshold match when the
data to be looked up doesn't actually specify a network tag. In this
case, the output for net will be '(ignored)'.

Signed-off-by: martin f. krafft <redacted>
scripts/ctrlact.pl
git clone https://git.99rst.org/PROJECT