MoonScript IRC — File Browser
MoonScriptIRCv3.0 / MoonScriptIRCv3.0 / system / controls.ini
controls.ini — 2.25 KB — Download this file
[script]
n0=
n1=#autoreoper on
n2=on 3:DEOP:#: {
n3= if ( $opnick == $me ) && ( $nick != $me ) && ( $nick != chanserv ) {
n4= .msg chanserv op # $me
n5= .inc %knum 1
n6= .timer 1 1 kick # $nick $moontxt2(Don't Deop Me) - $kicklogo
n7= }
n8=}
n9=#autoreoper end
n10=
n11=#unbanner on
n12=on @*:ban:#: {
n13= if ($nick == $me) { goto end }
n14= elseif ( $banmask iswm $address($me,5) ) {
n15= .mode # -b $banmask
n16= .mode # +b $address($nick,3)
n17= .inc %knum 1
n18= .kick # $nick $moontxt2(Don't Ban Me) - $kicklogo
n19= }
n20= :end
n21= halt
n22=}
n23=
n24=#unbanner end
n25=
n26=#retaliator on
n27=on @*:kick:#: {
n28= if ( $opnick == $me ) && ( $nick != $me ) {
n29= echo -a $moontxt2(You Were Kicked From) $moontxt2($chan) $moontxt2(By) $moontxt2($nick)
n30= raw -q join $chan
n31= inc %knum 1
n32= .timer 1 1 kick $chan $nick $moontxt2(Kick Revenge) - $kicklogo
n33= halt
n34= }
n35=}
n36=#retaliator end
n37=
n38=#kickcatch on
n39=on @*:ban:#:bancheck
n40=#kickcatch end
n41=
n42=#banlock off
n43=on @*:unban:#:{
n44= .mode # +b $banmask
n45= .msg # sorry $nick $+ , You may not remove bans on this channel. < $+ $banmask re-added to ban list>
n46=}
n47=#banlock end
n48=
n49=#banunlock off
n50=on @*:ban:#:{
n51= .mode # -b $banmask
n52= .msg # sorry $nick $+ , You may not ban people on this channel. < $+ $banmask removed from ban list>
n53=}
n54=#banunlock end
n55=
n56=#toplock off
n57=on 1:disconnect: { .remove topic.txt }
n58=on @*:topic:%toplock.chan: {
n59= if ( $nick == chanserv ) { halt }
n60= elseif ( $nick == $me ) { write -ds $+ $chan toplock.txt | .timer 1 5 refresh.topic $chan }
n61= else { topic $chan $read -s $+ $chan toplock.txt }
n62=}
n63=on 1:join:#:{
n64= if ( $nick == $me ) {
n65= .write -ds $+ $chan toplock.txt
n66= .timer 1 5 refresh.topic
n67= }
n68=}
n69=#toplock end
n70=alias refresh.topic {
n71= .remove toplock.txt
n72= set %top.chan 1
n73= :lewp
n74= if ( $chan(%top.chan) == $null ) { goto end }
n75= else {
n76= .write -ds $+ $chan(%top.chan) toplock.txt
n77= .write toplock.txt $chan(%top.chan) $chan(%top.chan).topic
n78= inc %top.chan 1
n79= goto lewp
n80= }
n81= :end
n82=}