summaryrefslogtreecommitdiffstats
path: root/scripts/ctrlact.pl
AgeCommit message (Collapse)Author
2017-02-24Loosen version check on data file readmartin f. krafft
The versioning of the data file allows for making changes to the format, but if the script version increases without the data file-format being changed, things are expected to work as before, and thus there ought not be an error spouted. Let's only use the versioning to patch up handling for formats of the past. Signed-off-by: martin f. krafft <madduck@madduck.net>
2017-02-24Fix network matching for query subcommandmartin f. krafft
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 <madduck@madduck.net>
2017-02-15Switch to 3-arg open callsmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2017-02-15Properly handle mappings file creationmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2017-02-15Use croak instead of diemartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2017-02-15Simplify debug outputmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2017-02-15Unify print outputmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2017-02-15Print linenumbers in /ctrlact list outputmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2017-02-15Lower message level of debug outputmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2017-02-15Add ability to match on server tagmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2017-02-15Single-line debug outputmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2017-02-14React to setup reread signalmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2017-02-13Make inhibiting the beep configurablemartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>
2017-02-13Initial checkin of ctrlact scriptmartin f. krafft
Signed-off-by: martin f. krafft <madduck@madduck.net>