1
0
mirror of https://git.piraattipuolue.fi/Pikaviestimet/Pikaviestimet.git synced 2024-11-26 21:59:33 +01:00
PPFI-IM/irc/generate-amode-cmds.bash

19 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
# Generates lines to be copy-pasted to IRC client for mass-managing modes
# in our PUBLIC IRC channels. Note: +h overrides cmode +i.
# Modes: refer to https://github.com/ergochat/ergo/blob/master/docs/MANUAL.md#channel-prefixes
# Usage: ./generate-amode-cmds.bash username <+|->mode
# public channels where matterbridge is
# excluded: #globalpirates (we just provide the bridge), oper room x2 (not solely ours either)
# If they were included, oper running this would cause takeover of those
# channels as being oper overrides AMODE permission check
# included: #messi (if they have power in our rooms, hopefully they are also an activist)
for channel in \#helsinki \#keski-suomi \#pirkanmaa \#oulu \#puoluevaltuusto \#puoluetoimisto \#pinu_hallitus \#uusimaa \#varsinais-suomi \#akateemisetpiraatit \#piraattinuoret \#kampanjateltta \#sateenkaaripiraatit \#hame \#vaasa \#hallituskokous \#grafiikka \#toiminta \#piraattivpn \#ppfi \#hepihalko \#aaltopiraatit \#kaakko \#mediaseuranta \#savo-karjala \#messi \#piraatit \#suomiareena \#satakunta \#verkkopalvelut
do
echo "/cs amode $channel $1 $2"
done