From 631c470ea95ae6b5d2a50b783674d9358e67461c Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Thu, 15 Nov 2018 11:57:32 +0200 Subject: [PATCH] add forgotten script used in PPFI --- irc/piraatit/keeptopic.bash | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 irc/piraatit/keeptopic.bash diff --git a/irc/piraatit/keeptopic.bash b/irc/piraatit/keeptopic.bash new file mode 100755 index 0000000..197d260 --- /dev/null +++ b/irc/piraatit/keeptopic.bash @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# Based on https://stackoverflow.com/a/8880633 + +# Purpose: mass setting entrymsgs + +# Finnish speaking channels +declare -a arr=("#aaltopiraatit" "#akateemisetpiraatit" "#aktiivit" "#antikupla" "#grafiikka" "#hallituskokous" "#hame" "#helsinki" "#hepihalko" "#kaakko" "#keski-suomi" "#likakaivo" "#mediaseuranta" "#messi" "#Mikaela" "#pinu" "#pinu-hallitus" "#pinuhalko" "#pinu_hallitus" "#piraatit" "#piraattinuoret" "#piraattipuolue" "#piraattivpn" "#pirkanmaa" "#politiikka" "#ppfi-chanacs-abuse" "#puoluehallitus" "#puoluekokous" "#puoluetoimisto" "#purje" "#satakunta" "#sateenkaaripiraatit" "#savo-karjala" "#sivusto" "#syotteet" "#test" "#toiminta" "#tulevaisuus" "#uusimaa" "#vaaliteltta" "#vaasa" "#varainhankinta" "#varsinais-suomi" "#verkkopalvelut") + +for i in "${arr[@]}" +do + echo "/msg ChanServ set $i KEEPTOPIC ON" +done + +# English speaking channels +declare -a arr=("#ppfi" "#ypfi") + +for i in "${arr[@]}" +do + echo "/msg ChanServ set $i KEEPTOPIC ON" +done