mirror of
https://git.piraattipuolue.fi/Pikaviestimet/Pikaviestimet.git
synced 2025-08-07 00:57:24 +02:00
Compare commits
No commits in common. "3446f52c59189d94d410c7e8eb034f1193fcf178" and "83a9e52e8934deabcb41e2b358f9cd3e3483bd29" have entirely different histories.
3446f52c59
...
83a9e52e89
@ -1,26 +0,0 @@
|
|||||||
# Scripts for managing PPFI channels on PirateIRC
|
|
||||||
|
|
||||||
The original list of channels comes from where `MI1` is according to oper
|
|
||||||
`WHOIS` and should match `kanavat.csv` with exceptions of secret channels
|
|
||||||
and those not (fully) belonging to Pirate Party of Finland.
|
|
||||||
|
|
||||||
The scripts only generate lines that should be copy-pasted to a IRC client
|
|
||||||
for anything to actually happen. They are provided [missing GroupServ](https://github.com/ergochat/ergo/issues/465)
|
|
||||||
in hope that PPFI is able to operate IRC without @Mikaela constantly present.
|
|
||||||
|
|
||||||
* `./generate-amode-cmds.bash +o MI1` - giving user `MI1` op on all channels
|
|
||||||
which will persist and be granted on join. ***Prefer this script.***
|
|
||||||
* `./generate-oper-override-mode.bash +o MI1` - the same, except requires operator
|
|
||||||
permission, allows unregistered accounts and doesn't persist over `/cycle`
|
|
||||||
whether manual or connection loss or similar. ***Use only in emergency
|
|
||||||
and even in emergency, and even then prefer amoding yourself with the previous script and then
|
|
||||||
using the next script.***
|
|
||||||
* `./generate-usual-mode-cmds.bash +o MI1` - non-oper version of the previous script,
|
|
||||||
generates normal `/mode` commands within the usual permission system most likely
|
|
||||||
requiring being op (use the amode script for that, see drawbacks of the previous script).
|
|
||||||
|
|
||||||
## Further reading and notes
|
|
||||||
|
|
||||||
* (CS) AMODE +h (halfop) overrides mode `+i` (invite-only channel).
|
|
||||||
* https://github.com/ergochat/ergo/blob/master/docs/MANUAL.md#channel-prefixes - on owner/protected/op/halfop/voice
|
|
||||||
* https://github.com/ergochat/ergo/blob/master/docs/MANUAL.md#modes - on channel modes such as the aforementioned invite-only
|
|
@ -1,9 +1,16 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Looping through all the channels
|
# 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)
|
||||||
|
# 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
|
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
|
do
|
||||||
# Printing the lines to be copy-pasted to IRC
|
|
||||||
# Example output: /quote cs amode #channel +o MI1
|
|
||||||
echo "/cs amode $channel $1 $2"
|
echo "/cs amode $channel $1 $2"
|
||||||
done
|
done
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Looping through all the channels
|
|
||||||
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
|
|
||||||
# Printing the lines to be copy-pasted to IRC
|
|
||||||
# Example output: /quote samode #channel +o MI1
|
|
||||||
echo "/quote samode $channel $1 $2"
|
|
||||||
done
|
|
@ -1,9 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Looping through all the channels
|
|
||||||
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
|
|
||||||
# Printing the lines to be copy-pasted to IRC
|
|
||||||
# Example output: /mode #channel +o MI1
|
|
||||||
echo "/mode $channel $1 $2"
|
|
||||||
done
|
|
Loading…
x
Reference in New Issue
Block a user