2014-09-24 18:08:50 +02:00
|
|
|
#!/usr/bin/env bash
|
2014-09-24 18:19:55 +02:00
|
|
|
# This script generates commands which can be copy-pasted to Atheme's
|
|
|
|
# ChanServ to set templates which can later be set with flags.
|
|
|
|
|
|
|
|
# With these templates, bots and ops are opped and (trusted) users are
|
|
|
|
# voiced. I am not fully sure where I took the word "users", but it's good
|
|
|
|
# enough.
|
|
|
|
|
2014-10-12 15:52:44 +02:00
|
|
|
## ChanServ settings
|
|
|
|
# Tell ChanServ to be on channel. Not needed for larger channels
|
2014-10-12 15:53:34 +02:00
|
|
|
echo "/cs set $1 GUARD ON"
|
2014-10-12 15:52:44 +02:00
|
|
|
|
|
|
|
# Disables ChanServ MLOCK
|
2014-10-12 15:53:34 +02:00
|
|
|
echo "/cs set $1 MLOCK"
|
2014-10-12 15:52:44 +02:00
|
|
|
|
|
|
|
# Allow channel information to be seen
|
2014-10-12 15:53:34 +02:00
|
|
|
echo "/cs set $1 PRIVATE OFF"
|
2014-10-12 15:52:44 +02:00
|
|
|
|
2014-10-25 20:43:00 +02:00
|
|
|
# Sync flags when they are changed
|
|
|
|
echo "/cs set $1 NOSYNC OFF"
|
|
|
|
|
2014-10-12 15:52:44 +02:00
|
|
|
# Allow only identified users to be opped
|
2014-10-12 15:53:34 +02:00
|
|
|
echo "/cs set $1 SECURE ON"
|
2014-10-12 15:52:44 +02:00
|
|
|
|
|
|
|
# Allow only users with +t flag to change topic
|
2014-10-12 15:53:34 +02:00
|
|
|
echo "/cs set $1 TOPICLOCK ON"
|
2014-10-12 15:52:44 +02:00
|
|
|
|
2014-09-24 18:19:55 +02:00
|
|
|
# Allows everyone to see ACL changes.
|
2014-10-12 15:53:34 +02:00
|
|
|
echo "/cs set $1 VERBOSE ON"
|
2014-09-24 18:19:55 +02:00
|
|
|
|
2014-10-12 15:52:44 +02:00
|
|
|
## ChanServ templates
|
2014-09-24 18:19:55 +02:00
|
|
|
# Channel founder who can do anything they want.
|
2014-10-12 15:53:34 +02:00
|
|
|
echo "/cs template $1 founder !+*F"
|
2014-09-24 18:19:55 +02:00
|
|
|
|
|
|
|
# Successor will get all flags in the end and if they cannot be trusted
|
|
|
|
# with them now, they really shouldn't be successor.
|
2014-10-12 15:53:34 +02:00
|
|
|
echo "/cs template $1 successor !+*S"
|
2014-09-24 18:19:55 +02:00
|
|
|
|
|
|
|
# Super op, be able to do everything with services
|
2014-10-26 18:20:22 +01:00
|
|
|
echo "/cs template $1 sop !-q+*"
|
2014-09-24 18:19:55 +02:00
|
|
|
|
|
|
|
# Normal op, be able to invite, invite, kick, kickban, unban, change topic
|
2014-10-26 18:20:22 +01:00
|
|
|
echo "/cs template $1 op !+vVoirtAOHh"
|
2014-09-24 18:19:55 +02:00
|
|
|
|
2014-09-28 11:52:54 +02:00
|
|
|
# Half op, be able to do everything else than kick other halfops & higher
|
2014-10-26 17:51:19 +01:00
|
|
|
echo "/cs template $1 hop !+vVirtAHh"
|
2014-09-28 11:10:09 +02:00
|
|
|
|
2014-09-24 18:19:55 +02:00
|
|
|
# Network operator whom we want to have a little access so they can help
|
|
|
|
# with channel issues in case our own ops are away.
|
|
|
|
# Usually given to $OPER or staffer hostmask.
|
2014-10-26 18:20:22 +01:00
|
|
|
echo "/cs template $1 oper !+voirtAh"
|
2014-09-24 18:19:55 +02:00
|
|
|
|
|
|
|
# Bot which doesn't need to be able to do so much.
|
2014-10-26 18:20:22 +01:00
|
|
|
echo "/cs template $1 bot !+OoirtHh"
|
2014-09-24 18:19:55 +02:00
|
|
|
|
2014-09-28 11:10:09 +02:00
|
|
|
# Half op bot which doesn't need to be able to do even that much
|
2014-10-26 17:17:49 +01:00
|
|
|
echo "/cs template $1 hbot !+Hhirt"
|
2014-09-28 11:10:09 +02:00
|
|
|
|
2014-09-24 18:19:55 +02:00
|
|
|
# User who is just allowed to voice themselves and get into the channel
|
|
|
|
# unless they are banned.
|
2014-10-12 15:53:34 +02:00
|
|
|
echo "/cs template $1 user !+ViA"
|
2014-09-24 18:19:55 +02:00
|
|
|
|
|
|
|
# Permanent ban. Removes all flags and sets autokick.
|
2014-10-12 15:56:27 +02:00
|
|
|
echo "/cs template $1 ban !-*+b"
|