view tests/data/irccd-multiple-rules.conf @ 665:7ed23c858694

Tests: test irccdctl (rule-* commands) #785 While here, fix rule-edit which were triggering invalid_index because it was not added to the request. Also fix missing events from configuration file because they were forgotten. Finally, use std::set instead of std::unordered_set for a sorted output in rule-list and rule-info to ensure long-term compatibility in output.
author David Demelier <markand@malikania.fr>
date Thu, 29 Mar 2018 20:01:02 +0200
parents
children
line wrap: on
line source

[transport]
type        = "unix"
path        = "@CMAKE_BINARY_DIR@/tmp/irccd.sock"

[rule]
servers     = "s1"
channels    = "c1"
plugins     = "p1"
events      = "onTopic"
action      = "accept"

[rule]
servers     = "s2"
channels    = "c2"
plugins     = "p2"
events      = "onCommand"
action      = "drop"

[rule]
servers     = "s3"
channels    = "c3"
plugins     = "p3"
events      = "onMessage"
action      = "accept"

# vim: ft=cfg: