diff options
| author | Adam <Adam@anope.org> | 2013-01-08 20:25:01 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-01-08 20:25:01 -0500 |
| commit | 9931ec299446c3d9e149f91a953748350c38eba6 (patch) | |
| tree | fb3969d5aeb2ce23a7d2cde9fd9e47841b125c4b /data/chanserv.example.conf | |
| parent | 5f3dfc296041540960f372b010eea623bdd7d335 (diff) | |
Use m_rewrite to rewrite op, deop, halfop, ... etc
Diffstat (limited to 'data/chanserv.example.conf')
| -rw-r--r-- | data/chanserv.example.conf | 134 |
1 files changed, 113 insertions, 21 deletions
diff --git a/data/chanserv.example.conf b/data/chanserv.example.conf index 5933c5ba3..0d83e6a3c 100644 --- a/data/chanserv.example.conf +++ b/data/chanserv.example.conf @@ -1006,27 +1006,6 @@ module { name = "cs_mode" } command { service = "ChanServ"; name = "MODE"; command = "chanserv/mode"; } /* - * cs_mode - * - * Provides the commands chanserv/op, chanserv/deop, chanserv/halfop, chanserv/dehalfop - * chanserv/voice, chanserv/devoice, chanserv/protect, chanserv/deprotect, - * chanserv/owner, and chanserv/deowner. - * - * Used for setting and removing modes on users. - */ -module { name = "cs_modes" } -command { service = "ChanServ"; name = "OP"; command = "chanserv/op"; } -command { service = "ChanServ"; name = "DEOP"; command = "chanserv/deop"; } -command { service = "ChanServ"; name = "HALFOP"; command = "chanserv/halfop"; } -command { service = "ChanServ"; name = "DEHALFOP"; command = "chanserv/dehalfop"; } -command { service = "ChanServ"; name = "VOICE"; command = "chanserv/voice"; } -command { service = "ChanServ"; name = "DEVOICE"; command = "chanserv/devoice"; } -command { service = "ChanServ"; name = "PROTECT"; command = "chanserv/protect"; } -command { service = "ChanServ"; name = "DEPROTECT"; command = "chanserv/deprotect"; } -command { service = "ChanServ"; name = "OWNER"; command = "chanserv/owner"; } -command { service = "ChanServ"; name = "DEOWNER"; command = "chanserv/deowner"; } - -/* * cs_register * * Provides the commands chanserv/register. @@ -1220,6 +1199,119 @@ command { service = "ChanServ"; name = "AOP"; command = "chanserv/aop"; } command { service = "ChanServ"; name = "HOP"; command = "chanserv/hop"; } command { service = "ChanServ"; name = "VOP"; command = "chanserv/vop"; } +/* Use m_rewrite to rewrite the op, deop, etc. commands (see modules.conf). */ + +command +{ + service = "ChanServ"; name = "OWNER"; command = "rewrite" + + rewrite = true + rewrite_souce = "OWNER $" + rewrite_target = "MODE $1 SET +q $2" + + rewrite_description = "Gives you owner status on channel" +} +command +{ + service = "ChanServ"; name = "DEOWNER"; command = "rewrite" + + rewrite = true + rewrite_source = "DEOWNER $" + rewrite_target = "MODE $1 SET -q $2" + + rewrite_description = "Removes your owner status on a channel" +} + +command +{ + service = "ChanServ"; name = "PROTECT"; command = "rewrite"; + + rewrite = true + rewrite_source = "PROTECT $" + rewrite_target = "MODE $1 SET +a $2" + + rewrite_description = "Protects a selected nick on a channel" +} +command +{ + service = "ChanServ"; name = "DEPROTECT"; command = "rewrite"; + + rewrite = true + rewrite_source = "DEPROTECT $" + rewrite_target = "MODE $1 SET -a $2" + + rewrite_description = "Deprotects a selected nick on a channel" +} + +command +{ + service = "ChanServ"; name = "OP"; command = "rewrite"; + + rewrite = true + rewrite_source = "OP $" + rewrite_target = "MODE $1 SET +o $2" + + rewrite_description = "Gives Op status to a selected nick on a channel" +} + +command +{ + service = "ChanServ"; name = "DEOP"; command = "rewrite"; + + rewrite = true + rewrite_source = "DEOP $" + rewrite_target = "MODE $1 SET -o $2"; + + rewrite_description = "Deops a selected nick on a channel" +} + +/* HALFOP and DEHALFOP commands */ +command +{ + service = "ChanServ"; name = "HALFOP"; command = "rewrite"; + + rewrite = true + rewrite_source = "HALFOP $" + rewrite_target = "MODE $1 SET +h $2" + + rewrite_description = "Halfops a selected nick on a channel" + +} +command +{ + service = "ChanServ"; name = "DEHALFOP"; command = "rewrite" + + rewrite = true + rewrite_source = "DEHALFOP $" + rewrite_target = "MODE $1 SET -h $2" + + rewrite_description = "Dehalfops a selected nick on a channel" +} + +/* VOICE and DEVOICE commands */ +command +{ + service = "ChanServ"; name = "VOICE"; command = "rewrite"; + + rewrite = true + rewrite_source = "VOICE $" + rewrite_target = "MODE $1 SET +v $2" + + rewrite_description = "Voices a selected nick on a channel" +} + +command +{ + service = "ChanServ"; name = "DEVOICE"; command = "rewrite"; + + rewrite = true + rewrite_source = "DEVOICE $" + rewrite_target = "MODE $1 SET -v $2" + + rewrite_description = "Devoices a selected nick on a channel" +} + + /* * Extra ChanServ related modules. */ |
