From f1d04a2f8e4e9077d07a94b64478bb331b49bbc0 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 6 Dec 2010 20:53:15 -0500 Subject: Allow command aliases to be redirected to different pseudo clients --- data/example.conf | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) (limited to 'data') diff --git a/data/example.conf b/data/example.conf index df6bcee3d..ddbdbbc42 100644 --- a/data/example.conf +++ b/data/example.conf @@ -1871,37 +1871,41 @@ m_xmlrpc module { name = "m_alias" } alias { - /* Set to yes to make this alias triggerabe by fantasy commands. - */ + /* Set to yes to make this alias triggerable by fantasy commands. */ fantasy = no + /* Set to yes to make this alias oper only */ + operonly = no - /* Target client the alias should be for (if not using fantasy). + /* Source client and command. */ - client = "NickServ" + source_client = "NickServ" + source_command = "ID" - /* Alias name and command */ - alias = "ID" - command = "IDENTIFY" - - /* Set to yes to make this alias oper only */ - operonly = no + /* Target client and command. + */ + target_client = "NickServ" + target_command = "IDENTIFY" } /* Provides the !k fantasy command */ alias { - fantasy = true - alias = "K" - command = "KICK" + fantasy = yes + source_command = "K" + + target_client = "ChanServ" + target_command = "KICK" } /* Provides the !kb fantasy command */ alias { - fantasy = true - alias = "KB" - command = "BAN" + fantasy = yes + source_command = "KB" + + target_client = "ChanServ" + target_command = "BAN" } /* -- cgit