All pastes #330504 Raw Edit

Unnamed

public text v1 · immutable
#330504 ·published 2007-01-27 23:32 UTC
rendered paste body
on * :TEXT:!info:#WinVista: {
  notice $nick *INFO* WinVista v1.0 Alpha
}
on *:TEXT:!help*:#WinVista: {
  if ($2 == !addwvo) {
    notice $nick [!addwvo] fügt einen User zu der Operatorenliste hinzu.
  }  
  else {
    if ($2 == !addwvv) {
      notice $nick [!addwvv] fügt einen User zu der Voiceliste hinzu.
    }  
    else {
      if ($2 == !addwva) {
        notice $nick [!addwva] fügt einen User zu der Adminliste hinzu. [Admin haben volle Rechte]
      }  
      else {
        if ($2 == !remwvo) {
          notice $nick [!remwvo] löscht einen User aus der Operatorenliste.
        }  
        else {
          if ($2 == !remwvv) {
            notice $nick [!remwvv] löscht einen User aus der Voiceliste.
          }  
          else {
            if ($2 == !remwva) {
              notice $nick [!remwva] löscht einen User aus der Adminliste. 
            }  
            else {
              notice $nick *Wrong Syntax* Use: !help <command>
            }    
          }
        }
      }
    }
  }
}

-------------------------------------Channel-Function--------------------------------------------------
on *:TEXT:!commands:#WinVista: {
  if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
    notice $nick Commands on #WinVista are: 
    notice $nick [!addwvo <nick>; !addwvv <nick>; !addwva <nick>; !remwvo <nick>; !remwvv <nick>; !remwva <nick>; !help]
    notice $nick Xtra-Commands are [/msg WinVista (+v,-v,+o,-o,+k,+b) <nick>;]
  }
  else {
    notice $nick Es tut mir Leid dir stehen keine Commands zur Verfügung!
  }
}
on *:TEXT:!remwvo*:#WinVista: {
  if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
    remini OP.ini WVO $address($2,3)
    notice $nick Du hast $2 erfolgreich aus der WinVista Operatoren-Liste gelöscht!
  }
}
on *:TEXT:!remwvv*:#WinVista: {
  if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
    remini OP.ini WVV $address($2,3)
    notice $nick Du hast $2 erfolgreich aus der WinVista Voice-Liste gelöscht!
  }
}
on *:TEXT:!remwva*:#WinVista: {
  if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
    remini OP.ini WVA $address($2,3)
    notice $nick Du hast $2 erfolgreich aus der WinVista Admin-Liste gelöscht!
  }
}
on *:TEXT:!addwvo*:#WinVista: {
  if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
    writeini OP.ini WVO $address($2,3) yes
    notice $nick Du hast $2 erfolgreich in die WinVista Operatoren-Liste hinzugefügt!
  }
}
on *:TEXT:!addwvv*:#WinVista: {
  if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
    writeini OP.ini WVV $address($2,3) yes
    notice $nick Du hast $2 erfolgreich in die WinVista Voice-Liste hinzugefügt!
  }
}
on *:TEXT:!addwva*:#WinVista: {
  if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
    writeini OP.ini WVA $address($2,3) yes
    notice $nick Du hast $2 erfolgreich in die WinVista Admin-Liste hinzugefügt!
  }
}
----------------------------------Bot-Function--------------------------------------------------------
on *:TEXT:+o*:?: { 
  if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
    mode %chan +o $2-
  }
}
on *:TEXT:-o*:?: {
  if ($1- == -o WinVista) {
    halt 
  }
  else {
    if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
      mode %chan -o $2-
    }
  }
}
on *:TEXT:+v*:?: { 
  if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
    mode %chan +v $2-
  }
}
on *:TEXT:-v*:?: {
  if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
    mode %chan -v $2-
  }
}
on *:TEXT:+k*:?: {
  if ($1- == +k WinVista) {
    halt 
  }
  else {
    if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
      kick %chan $2- Kicked
    }
  }
}
on *:TEXT:+b*:*: {
  if ($1- == +b WinVista) {
    halt 
  }
  else {
    if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
      mode %chan +b $address($2,3)
      kick %chan $2 Banned
    }
  }
}
on *:TEXT:-b*:?: {
  if ($readini(OP.ini,wva,$address($nick,3)) == yes) {
    mode %chan -b $address($2,3)
  }
}
------------------------------------ Protection ----------------------------------------------
on *:JOIN:#WinVista: {
  if ((%kchan == $chan) && (%kicked == 1)) {   
    mode $chan +b-b $address(%kicker,3) $address($me,3)
    kick %kchan %kicker 4You are not allowed to KICK/BAN in #WinVista (BANNED
    unset %kchan
    set %kicked 0
    unset %kicker
    unset %unban
  }
  else {
    if (($readini(OP.ini,wvo,$address($nick,3)) == yes) && ($nick != $me)) {
      mode $chan +o $nick
    }
    else {
      if (($readini(OP.ini,wva,$address($nick,3)) == yes) && ($nick != $me)) {
        mode $chan +v $nick          
        mode $chan +o $nick 
      }
      else {
        if (($readini(OP.ini,wvv,$address($nick,3)) == yes) && ($nick != CeeC) && ($nick != $me)) {
          mode $chan +v $nick
        }
      }
    } 
  }
}
on *:INVITE:#WinVista: {
  if ($me ison $chan) { halt }
  else {
    join $chan
  }
}
on *:VOICE:#WinVista: {
  if (($readini(OP.ini,wva,$address($nick,3)) != yes) && ($nick != L) && ($nick != $me)) {
    mode $chan -v $vnick -o $nick 
  }
}
on *:DEVOICE:#WinVista: {
  if (($readini(OP.ini,wva,$address($nick,3)) != yes) && ($nick != L) && ($nick != $me)) {
    mode $chan +v $vnick -o $nick -v $nick
  }
}
on *:OP:#WinVista: {
  if (($readini(OP.ini,wva,$address($nick,3)) != yes) && ($nick != L) && ($nick != $me)) {
    mode $chan -o $opnick -o $nick
    ban -u30 $chan $address($nick,3)
    kick $chan $nick 4You are not allowed to op someone in #WinVista (30sec tempban
  }
}
on *:DEOP:#WinVista: {
  if (($readini(OP.ini,wva,$address($nick,3)) != yes) && ($opnick != $me) && ($nick != $me)) {
    mode $chan +o $opnick -o $nick
    ban -u30 $chan $address($nick,3)
    kick $chan $nick 4You are not allowed to deop someone in #WinVista (30sec tempban
  }
  else {
    if (($readini(OP.ini,wva,$address($nick,3)) != yes) && ($opnick == $me)) {
      set %deopnick $nick
      msg L op $chan
      timer 1 1 mode $chan -o %deopnick
      timer 1 1 ban -u30 $chan $address(%deopnick,3)
      timer 1 1 kick $chan $nick 4You are not allowed to deop me in #WinVista (30sec tempban
    }
    else {
      if (($readini(OP.ini,wva,$address($nick,3)) == yes) && ($opnick == $me)) {
        msg L op %chan
      }
    }
  }
}
on *:KICK:#WinVista: {
  if (($readini(OP.ini,wvo,$address($nick,3)) != yes) && ($readini(OP.ini,wva,$address($nick,3)) != yes) && ($knick != $me)) {
    ban $chan $address($nick,3)
    kick $chan $nick 4You are not allowed to KICK in #WinVista (BANNED
  }
  else {
    if (($readini(OP.ini,wvo,$address($nick,3)) != yes) && ($readini(OP.ini,wva,$address($nick,3)) != yes)) {
      set %unban $address($me,3)
      set %kicker $nick 
      set %kchan $chan 
      set %kicked 1 
      msg L invite $chan
    }
  }
}
on *:BAN:#WinVista: {
  if (($readini(OP.ini,wvo,$address($nick,3)) != yes) && ($readini(OP.ini,wva,$address($nick,3)) != yes)) {
    mode $chan -b+b $banmask $address($nick,3)
    kick $chan $nick 4You are not allowed to BAN in #WinVista (BANNED
  }
}
on *:UNBAN:#WinVista: {
  if ($readini(OP.ini,wva,$address($nick,3)) != yes) {
    mode $chan -b+b $banmask $address($nick,3)
    kick $chan $nick 4You are not allowed to UNBAN in #WinVista (BANNED
  }
}
-----------------------------------Anti-Repeat------------------------------------------------------
on *:TEXT:*:#WinVista: {
  if (!%repeat2. [ $+ [ $chan $+ [ $nick ] ] ]) || ($1- != %repeat2. [ $+ [ $chan $+ [ $nick ] ] ]) {
    set -u30 %repeat2. [ $+ [ $chan $+ [ $nick ] ] ] $1-
    unset %repeat3. [ $+ [ $chan $+ [ $nick ] ] ]
  }
  if (%repeat2. [ $+ [ $chan $+ [ $nick ] ] ] == $1-) {
    inc %repeat3. [ $+ [ $chan $+ [ $nick ] ] ] 1
  }
  if (%repeat3. [ $+ [ $chan $+ [ $nick ] ] ] >= 3) {
    ban -u30 $chan $address($nick,3)
    kick $chan $nick 43 Repeats in 30 Seconds! 10(30sec tempban
    unset %flood. [ $+ [ $chan $+ [ $nick ] ] ]
  }
}
----------------------------------- TOPIC ------------------------------------------------------------
on *:TOPIC:#WinVista: {
  if (($readini(OP.ini,wva,$address($nick,3)) != yes) && ($readini(OP.ini,wva,$address($nick,3)) != yes)) {
    topic $chan %topic
    ban -u30 $chan $address($nick,3)
    kick $chan $nick 4You are not allowed to change topic in #WinVista (30sec tempban
  }
}
-------------------------------------- Mode SAVE ----------------------------------------------------
on *:MODE:#WinVista {
  if (($readini(OP.ini,wva,$address($nick,3)) != yes) && ($readini(OP.ini,wva,$address($nick,3)) != yes)) {
    mode $chan -m
    mode $chan -p
    mode $chan -i
    mode $chan -l
    mode $chan -s
    mode chan -o nick
    kick $chan $nick 4You are not allowed to change modes in #WinVista (kicked
  }
}