eXtreme — File Browser

xtreme_s / xtreme_s / sys / raw.ini

raw.ini — 25.15 KB — Download this file

[script]
n0=;xxxxxxxxxxxxxxxxxxxxxxx
n1=; extreme v8.21
n2=; raw section
n3=;xxxxxxxxxxxxxxxxxxxxxxx
n4=;
n5=;IRCX raws by uninvited, slightly changed
n6=alias -l _knock return echo -t $1 $logo $_c(1) $+ Knock ( $+ $_c(3) $+ $nick ( $+ $address $+ ) $1- $+ $_c(1) $+ )
n7=raw knock:*:{
n8=  if ($2 == 471) { $_knock($1, [ Channel is full (+l) ] ) | halt }
n9=  if ($2 == 473) { $_knock($1, [ Channel is invite only (+i) ] ) | halt }
n10=  if ($2 == 474) { $_knock($1, [ User is banned (+b) ] ) | halt }
n11=  if ($2 == 475) { $_knock($1, [ Channel requires the correct key (+k) ] ) | halt }
n12=  sle $1- | halt
n13=}
n14=raw prop:*:if ($2 != topic) { echo -t $1 $logo $_c(1) $+ Prop ( $+ $_c(3) $+ $nick ( $+ $address $+ ) $upper($left($2,1)) $+ $lower($right($2,-1)) set to:  $+ $3- $+  $+ $_c(1) $+ ) | halt }
n15=;
n16=raw silence:*:{
n17=  var %m = $right($1,-1), %a = $iif($left($1,1) == +,1)
n18=  if ($istok(%§.silence.notshow,%m,44) == $false) ae (Silence) $iif(%a,Added,Removed) mask %m  $+ $iif(%a,to,from) list
n19=  if (%a) { _var silence $addtok($hget(x_vars,silence),%m,32) | if (%m isignore) .ignore -r %m }
n20=  else {
n21=    if ($remtok($hget(x_vars,silence),%m,32)) _var silence $ifmatch
n22=    else _--unset vars silence
n23=    if ($active == $window(@silence list)) && ($sline($active,1)) { dline $active $sline($active,1).ln | if ($line($active,0) == 2) window -c $active }
n24=  }
n25=  halt
n26=}
n27=raw 1:*:{
n28=  if (%§.starttime) && (!%§.kcount) .timer 1 3 _connect
n29=  set -u60 %§.connecting 1
n30=  set -u30 %§.raw1-5 1
n31=  set %§.starttime $ctime
n32=  if ($wildtok($1-,*!*@*,1,32)) set %§.myaddress $ifmatch
n33=  else .raw USERHOST $me
n34=  halt
n35=}
n36=raw 2:*:halt
n37=raw 3:*:halt
n38=raw 4:*:sle Your host is $2, running version $3 | sle Usermodes: $4 Channelmodes: $5 | halt
n39=raw 5:*:{
n40=  if (%§.raw1-5) {
n41=    if (watch= isin $2-) set %§.watchsys 1
n42=    if ($wildtok($1-,prefix=*,1,32)) set %§.prefix $gettok($ifmatch,2,61)
n43=  }
n44=  else sle $1-
n45=  unset %§.raw1-5
n46=  halt
n47=}
n48=raw 221:*:if ($_v%(mode.,$1)) ae $_c(1) $+ (modes/ $+ $1 $+ $_c(1) $+ ): $2- | unset $v%(mode.,$1) | halt
n49=raw 250:*:sle $2- | halt
n50=raw 251:*:setservices | linesep -s | sle $2- | halt
n51=raw 252:*:sle $2- | halt
n52=raw 253:*:sle $2- | halt
n53=raw 254:*:sle $2- | halt
n54=raw 255:*:sle $2- | linesep -s | halt
n55=raw 265:*:sle $2- | halt
n56=raw 266:*:sle $2- | halt
n57=raw 271:*:{
n58=  var %w = @Silence list
n59=  if (!$window(%w)) { window -klbh %w $_gcoord(silence,-1 -1 250 200) $_@font | aline %w $_c(1) $+ Mask | aline %w $_nchr(%w) }
n60=  aline %w $3
n61=  halt
n62=}
n63=raw 272:*:var %w = @Silence list | if ($window(%w)) window -a %w | else ale No SILENCE entries found | halt
n64=
n65=;isaway
n66=raw 301:*:{
n67=  if ($_v%(bchan.,$2)) || ($_v%(whoisl.,$2)) halt
n68=  if (($2 == $me) || ($query($2))) && (!$hget($+(x_tmp-whois.,$2))) halt
n69=  if ($hget($+(x_tmp-whois.,$2))) _echwhois $2 $display(wi.301,$2,$3-)
n70=  else ale $2 $_c(1) $+ is away: $3-
n71=  halt
n72=}
n73=
n74=;userhost
n75=raw 302:*:{
n76=  if (!$2-) ale $_c(3) $+ Userhost: No such user
n77=  var %n = $gettok($2,1,61), %h = $remove($replace($2,=,!),+)
n78=  if ($_v%(getip.,%n)) {
n79=    clipboard $gettok(%h,2,64) | ale IP ( $+ %n $+ ): %h
n80=    .timer 1 0 unset $v%(getip.,%n)
n81=  }
n82=  elseif (%n == $me) { set %§.myaddress %h | if (*!*@* !iswm %§.myaddress) set %§.myaddress $me $+ ! $+ $gettok($emailaddr,1,64) $+ @ $+ $gettok(%§.myaddress,2,33) }
n83=  elseif ($_v%(notify.,%n)) && (%n isnotify) {
n84=    var %h = $replace($right($gettok($2,2,61),-1),@,$+($_c(4),@,$_c(3)))
n85=    echo $colour(notify) $iif($notifyactive,-at,-st) $ech(notify,%n,%h)
n86=    .timer 1 0 unset $v%(notify.,%n)
n87=  }
n88=  halt
n89=}
n90=raw 303:*:halt
n91=
n92=;back
n93=raw 305:*:{
n94=  ale $2-
n95=  .timerupdaway off
n96=  .timeranti-idle off
n97=  resetidle
n98=  if (%§.my.nick) nick %§.my.nick
n99=  if ($hget(x_away,autoaway)) .timeridle 0 15 checkidle
n100=  if ($hget(x_away,p.enabled)) { _set prot disable 0 | _unset away p.enabled }
n101=  if (%§.awaysince) && ($hget(x_away,quiet) != 1) && ($chan(0)) ame $replace($ech(backaction),&ar,%§.awayreason,&atime,$_shorttime($duration($calc($ctime - %§.awaysince))))
n102=  if (%§.awaylog) ale You were contacted by $numtok(%§.awaylog,44)  $+ $iif($numtok(%§.awaylog,44) > 1,nicks,nick) while away. (ShiftF1 to read msglog)
n103=  unset %§.away* %§.my.nick
n104=  tbar
n105=  if ($hget(x_perform,on_back)) _perfd $ifmatch
n106=  halt
n107=}
n108=
n109=;away
n110=raw 306:*:{
n111=  if (%§.awaysince) {
n112=    if (%§.reseting.away) { ale $2- - (from previous session, reason: %§.awayreason $+ ) | unset %§.reseting.away }
n113=    halt
n114=  }
n115=  ale $2-
n116=  set %§.awaysince $ctime
n117=  .timerupdaway 1 65 _updaway 1
n118=  if ($hget(x_away,protdisable)) && ($hget(x_prot,disable) != 1) { _set away p.enabled 1 | _set prot disable 1 }
n119=  tbar
n120=  if ($hget(x_away,anti-idle)) anti-idle
n121=  if ($hget(x_perform,on_away)) _perfd $ifmatch
n122=  unset %§.awaylog
n123=  halt
n124=}
n125=
n126=#ex.whois on
n127=raw 311:*:{
n128=  if ($_v%(bchan.,$2)) halt
n129=  if ($_v%(idle.,$2)) { set $v%(idle.,$2) $_c(3) $+ $2 $+($_c(1),$chr(40),$_c(3),$3,$_c(1),@,$_c(3),$4,$_c(1),$chr(41),) | halt }
n130=  elseif ($_v%(whoisl.,$2)) { set $v%(whoisl.,$2) $_v%(whoisl.,$2) $+ ¤ $+ $+($3,@,$4) | halt }
n131=  var %tl = $remove($level($ulist($+($2,!,$3,@,$4))),=)
n132=  _echwhois $2 $display(wi.sl1,$2)
n133=  _echwhois $2 $display(wi.311.add,$2,$3,$4,%tl,$ccode($4))
n134=  _echwhois $2 $display(wi.311.name,$2,$6-)
n135=  halt
n136=}
n137=raw 307:*:if ($hget($+(x_tmp-whois.,$2))) _echwhois $2 $display(wi.307,$2,$3-) | halt
n138=raw 308:*:if ($hget($+(x_tmp-whois.,$2))) _echwhois $2 $display(wi.308,$2,$3-) | halt
n139=raw 309:*:if ($hget($+(x_tmp-whois.,$2))) _echwhois $2 $display(wi.309,$2,$3-) | halt
n140=raw 310:*:if ($hget($+(x_tmp-whois.,$2))) _echwhois $2 $display(wi.310,$2,$3-) | halt
n141=
n142=raw 312:*:{
n143=  if ($hget($+(x_tmp-whois.,$2))) || ($_v%(whowas.,$2)) {
n144=    $iif($hget($+(x_tmp-whois.,$2)),_echwhois $2,ce3 Whois) $display(wi.312,$2,$3,$4-)
n145=    if ($_v%(whowas.,$2)) && ($hget(x_sets,seen.status)) && ($seen($2)) ce3 Whois $_c(1) $+ » $+ $_c(4) seen: $strip($_getseen($2))
n146=    unset $v%(whowas.,$2)
n147=  }
n148=  elseif ($_v%(whoisl.,$2)) set $v%(whoisl.,$2) $_puttok($_v%(whoisl.,$2),$3,4,164)
n149=  halt
n150=}
n151=raw 313:*:if ($hget($+(x_tmp-whois.,$2))) _echwhois $2 $display(wi.313,$2,$3-) | halt
n152=
n153=;whowas
n154=raw 314:*:{
n155=  ce3 Whois $+($_c(4),[,$_c(3),whowas,$_c(4),],,$sepline1,)
n156=  ce3 Whois $_c(1) $+ » $+ $_c(3) $2 $+($_c(1),$chr(40),$_c(4),$3,$_c(1),@,$_c(4),$4,$_c(1),$chr(41),) $+($_c(4),[,$_c(3),$ccode($gettok($4,$gettok($4,0,46),46)),$_c(4),])
n157=  ce3 Whois $_c(1) $+ » $+ $_c(4) ircname: $6-
n158=  set $v%(whowas.,$2) 1
n159=  halt
n160=}
n161=
n162=;idle
n163=raw 317:*:{
n164=  if ($_v%(idle.,$2)) ale $_c(1) $+ Idle time for $_v%(idle.,$2) $+ $_c(1) $+ : $duration($3)
n165=  elseif ($hget($+(x_tmp-whois.,$2))) _echwhois $2 $display(wi.317,$2,$3,$iif($4,$4,$ctime),$5)
n166=  elseif ($_v%(whoisl.,$2)) set $v%(whoisl.,$2) $_puttok($_v%(whoisl.,$2),$duration($3),3,164)
n167=  halt
n168=}
n169=;channels
n170=raw 319:*:{
n171=  if ($_v%(bchan.,$2)) { var %c = $ifmatch | if ($2 ison %c) && ($checkbc($3-,%c)) penalty badchannel $2 %c $_km($2,badchannel,$ifmatch) }
n172=  elseif ($hget($+(x_tmp-whois.,$2))) { if ($numtok($3-,32) >= 9) var %e = (a LOT of channels...) | _echwhois $2 $display(wi.319,$2,$_wchlist($2,$sorttok($3-,32)) %e) }
n173=  elseif ($_v%(whoisl.,$2)) set $v%(whoisl.,$2) $_puttok($_v%(whoisl.,$2),$3-,5,164)
n174=  halt
n175=}
n176=raw 320:*:if ($hget($+(x_tmp-whois.,$2))) _echwhois $2 $_c(1) $+ > $2- | halt
n177=raw 335:*:if ($hget($+(x_tmp-whois.,$2))) _echwhois $2 $_c(1) $+ > $2- | halt
n178=raw 378:*:if ($hget($+(x_tmp-whois.,$2))) _echwhois $2 $display(wi.378,$2-) | halt
n179=raw 379:*:if ($hget($+(x_tmp-whois.,$2))) _echwhois $2 $_c(1) $+ > $2- | halt
n180=raw 318:*:{
n181=  if ($_v%(bchan.,$2)) {
n182=    var %c = $ifmatch, %a | unset $v%(bchan.,$2)
n183=    if ($hget(x_vars,bcscan)) {
n184=      %a = $ifmatch
n185=      _bchanwi %c $gettok(%a,1,44)
n186=      if ($deltok(%a,1,44)) _var bcscan $ifmatch
n187=      else { _--unset vars bcscan | ale Badchannels scan completed }
n188=    }
n189=  }
n190=  elseif ($hget($+(x_tmp-whois.,$2))) {
n191=    if ($hget(x_tmp-recnicks,$2)) _echwhois $2 $display(wi.recnicks,$ifmatch)
n192=    _echwhois $2 $display(wi.sl2)
n193=    _echwhois $2 end
n194=  }
n195=  elseif ($_v%(whoisl.,$2)) { var %a = $ifmatch | _addwhoisl $iif(%a,%a,$2 $+ ;<not here>) }
n196=  unset $v%(whoisl.,$2) $v%(idle.,$2)
n197=  halt
n198=}
n199=#ex.whois end
n200=#ex.who on
n201=;who end
n202=raw 315:*:{
n203=  if ($hget(x_vars,$+(ialupd.,$2))) {
n204=    _--unset vars $+(ialupd.,$2)
n205=    if ($2 !ischan) halt
n206=    if (%§.updial == $2) { unset %§.updial | ale $_c(3) $+ IAL updated for $2 | halt }
n207=    if ($_v%(bots.,$2)) { _botperf $ifmatch $2 | unset $v%(botperf.,$2) }
n208=    iblupd $2
n209=    enforce $2
n210=    halt
n211=  }
n212=  if ($_v%(kaway.,$2)) { unset if $v%(kaway.,$2) | halt }
n213=  var %t = $gettok(%§.who,1,32), %w = $iif(%t,$+(@Who ,%t),@Who), %a = $gettok(%§.who,2,32)
n214=  if (%§.iptrace.ip) {
n215=    if (%§.iptrace.f) unset %§.iptrace.*
n216=    elseif (%§.iptrace.ip2) { set %§.iptrace.ip %§.iptrace.ip2 | unset %§.iptrace.ip2 | .raw WHO %§.iptrace.ip }
n217=    else { ale Couldn't find offender ( $+ $2 $+ ). User may be invisible (+i). | unset %§.iptrace.* }
n218=    halt
n219=  }
n220=  elseif ($_v%(ircop.scan.,$2)) && (!%§.ircop.n) { ale No ircops found | unset $v%(ircop.scan.,$2) }
n221=  elseif ($_v%(aways.scan.,$2)) && (!%§.aways.n) { ale No aways found | unset $v%(aways.scan.,$2) }
n222=  elseif (%§.user.count) && ($window(%w)) {
n223=    _sortwin %w 1 9
n224=    if ($_v%(ircop.scan.,$2)) var %a = $ifmatch, %title = [ircops]
n225=    elseif (($2 == *) && (%§.ircop.g)) var %title = [ircops]
n226=    elseif ($_v%(aways.scan.,$2)) var %a = $ifmatch, %title = [aways]
n227=    else var %title = scan results
n228=    if (%a) echo $iif($2 ischan,$2,-a) $logo List complete ( $+ $round($calc(($ticks - %a) /1000),2) $+ s)
n229=    titlebar %w %title (users: $calc($line(%w,0) -4) $+ )
n230=    window -br %w
n231=  }
n232=  else {
n233=    window -c %w
n234=    if (($2 == *) || ($2 == 0)) && (%§.ircop.g) ale No ircops found
n235=    else ale Unable to get /WHO results for $2
n236=  }
n237=  unset %§.user.count %§.ircop.* %§.who %§.aways.*
n238=  halt
n239=}
n240=;who replies
n241=raw 352:*:{
n242=  if ($chan($2).ial == $inwho) && ($2 !ischan) halt
n243=  var %th = $+($6,!,$3,@,$4), %tmp = $+($3,@,$4)
n244=  if ($_v%(kaway.,$2)) {
n245=    var %x = $ifmatch
n246=    if (g isin $7) && ($6 != $me) && ($me isop $2) && ($kickexempt($6,$2)) $iif(%x == -b,qkickb,qkick) $2 $6 $_km($2,masskaway)
n247=    halt
n248=  }
n249=  if (%§.iptrace.ip == $4) { ale Probable offender found: $6 ( $+ %tmp $+ ) | if ($6 ison $2) sline -a $2 $6 | inc %§.iptrace.f | halt }
n250=  if ($hget(x_vars,$+(ialupd.,$2))) {
n251=    aseen %th on $2 | if ($2 !ischan) halt
n252=    if ($islev(bot,%th)) set $v%(bots.,$2) $addtok($_v%(bots.,$2),$6,44)
n253=    goto nickcol
n254=  }
n255=  if ($_v%(ircop.scan.,$2)) {
n256=    if (* !isin $7) halt
n257=    if ($6 ison $2) sline -a $2 $6
n258=    inc %§.ircop.n
n259=  }
n260=  if ($_v%(aways.scan.,$2)) {
n261=    if (g !isin $7) halt
n262=    if ($6 ison $2) sline -a $2 $6
n263=    inc %§.aways.n
n264=  }
n265=  var %t = $gettok(%§.who,1,32), %w = $iif(%t,$+(@Who ,%t),@Who)
n266=  if (!$window(%w)) {
n267=    window -knl -t13,38,45,51,58,60,77 +e %w $_gcoord(who,-1 -1 770 400) @who $_@font
n268=    aline %w $_nchr(%w) | aline %w $_nchr(%w)
n269=    aline %w $_c(1) $+ Nick $chr(9) $_c(1) $+ Address $chr(9) $_c(1) $+ Away $chr(9) $_c(1) $+ IRCOp $chr(9) $_c(1) $+ Status $chr(9) $_c(1) $+ H $chr(9) $_c(1) $+ Server $chr(9) $_c(1) $+ Realname
n270=    aline %w $_nchr(%w)
n271=  }
n272=  inc %§.user.count
n273=  aline %w $6 $chr(9) %tmp $chr(9) $iif(h isin $7,No,$+($_c(1),Yes,)) $chr(9) $iif(* isin $7,$+($_c(2),Yes,),No) $chr(9) $_userstat($7) $chr(9) $8 $chr(9) $5 $chr(9) $9-
n274=  :nickcol
n275=  if ($2 !ischan) || ($6 !ison $2) halt
n276=  var %.c = $_getcol($6,$remove($level($ulist(%th)),=),$2)
n277=  if (* isin $7) && ($6 != $me) {
n278=    if ($ulist(*,20,1) !iswm %th) .auser -a 20 $mask(%th,1) ircop
n279=    var %.c = $_ncread(3)
n280=    .ialmark $6 ircop
n281=  }
n282=  elseif (H !isin $7) && ((!%.c) || (%.c == $_ncread(7)) || (%.c == $_ncread(8)) || (%.c == $_ncread(2))) {
n283=    var %.c = $_ncread(6)
n284=    .ialmark $6 away
n285=  }
n286=  nickcol $6 $2 %.c
n287=  halt
n288=}
n289=#ex.who end
n290=raw 321:*:return
n291=raw 322:*:return
n292=raw 323:*:halt
n293=
n294=;chan modes
n295=raw 324:*:{
n296=  if ($_v%(mode.,$2)) { ae $_c(1) $+ (modes/ $+ $2 $+ $_c(1) $+ ): $3- | unset $v%(mode.,$2) }
n297=  if ($_v%(topic,$2)) { echo $2 $join.sepline2 | unset $v%(topic,$2) }
n298=  set -u10 $v%(raw324.,$2) 1
n299=  halt
n300=}
n301=raw 328:*:echo $iif($2 ischan,$2,-a) $logo [Homepage for $2 $+ ] $3- | halt
n302=
n303=;creation time
n304=raw 329:*:{
n305=  if ($_v%(jkicked.,$2)) || ($_v%(cycled.,$2)) || ($hget(x_sets,onjoin.showcreate) != 1) halt
n306=  echo $2 $_c(1) $+ [ $+ $_c(3) $+ Created $duration($calc($ctime - $3)) ago $+ $_c(1) $+ ]
n307=  halt
n308=}
n309=;topic
n310=raw 332:*:{
n311=  if ($_v%(jkicked.,$2)) || ($_v%(cycled.,$2)) halt
n312=  if ($3-) addnewtopic $2 $strip($3-)
n313=  if (($_v%(jjoin.,$2)) && ($hget(x_sets,onjoin.showtopic))) || (!$_v%(jjoin.,$2)) {
n314=    echo $2 $join.sepline1 | echo $colour(topic) -i2 $2 $_c(1) $+ » Topic: $iif($3 != $null,$3-) $+ 
n315=    set -u15 $v%(topic,$2) 1
n316=  }
n317=  halt
n318=}
n319=;topic author/date
n320=raw 333:*:{
n321=  if ($_v%(jkicked.,$2)) || ($_v%(cycled.,$2)) || (($_v%(jjoin.,$2)) && ($hget(x_sets,onjoin.showtopic) != 1)) halt
n322=  echo $colour(topic) $2 $_c(1) $+ » Set by: $3 $_c(1) $+ on [ $asctime($4) ]
n323=  echo $2 $join.sepline2
n324=  unset $v%(topic,$2)
n325=  halt
n326=}
n327=;names
n328=raw 353:*:{
n329=  if (%§.names == $3) || (($hget(x_sets,onjoin.shownames)) && ($_v%(jjoin.,$3))) {
n330=    _namesparse $3 $remove($4,:) $5-
n331=    if (!$4) { ce Names $logo No "visible" nicks on $3 | unset %§.names }
n332=  }
n333=  halt
n334=}
n335=raw 341:*:halt
n336=raw 346:*:_raws @Invite $2-
n337=raw 347:*:_raws2 @Invite $2
n338=raw 348:*:_raws @Except $2-
n339=raw 349:*:_raws2 @Except $2
n340=;links
n341=raw 364:*:if (%§.gets.p) _addserver $2 $5-
n342=;links end
n343=raw 365:*:if (%§.gets.p) { sle Done! %§.gets.nr server(s) added. Assumed port %§.gets.p for all, in $iif(%§.gets.g,%§.gets.g,n/a) group. | unset %§.gets.* | halt }
n344=;names end
n345=raw 366:*:{
n346=  if ($window($+(@names-,$2))) {
n347=    var %w = $+(@names-,$2), %na = $iif(%§.names == $2,1), %nc = $_nchr($2), %max = $calc($hget(x_vars,namesmax) +11), %n = 1
n348=    if (%na) ce Names $+($_c(4),[,$_c(3),names,$_c(4),],,$sepline1,)
n349=    while ($line(%w,%n)) {
n350=      var %ni = $ifmatch, %ni = $+($_c(1),[,%ni,$_c(1),]), %line = %line $+ %ni $+ $str(%nc,$calc(%max - $len(%ni))), %i = $calc(%i +1)
n351=      if (5 // %i) { ce Names $str(%nc,3) %line | unset %line %i }
n352=      inc %n
n353=    }
n354=    if (%line) ce Names $str(%nc,3) %line
n355=    if (%na) { ce Names $sepline2 | unset %§.names | colournicks $2 }
n356=    _--unset vars namesmax
n357=    window -c %w
n358=  }
n359=  elseif (%§.names == $2) { ale No 'visible' users on $2 | unset %§.names }
n360=  if ($2 !ischan) halt
n361=  if ($_v%(jjoin.,$2)) {
n362=    if (($_v%(jkicked.,$2)) && (%§.banned.from != $2)) || ($_v%(cycled.,$2)) goto next
n363=    if ($cset($2,idle)) chanidle $2
n364=    if (%§.banned.from == $2) { unset %§.banned.from | .timer 1 0 _restorebuf $2 }
n365=    if ($_v%(topic,$2)) echo $2 $join.sepline2
n366=
n367=    if ($hget(x_sets,onjoin.showstats)) echo $2 $chanstats($2)
n368=
n369=    if ($hget(x_sets,onjoin.showsynch)) echo $2 $_c(1) $+ [ $+ $_c(3) $+ Synched in $calc(($ticks - $_v%(synch.t.,$2)) / 1000) seconds $+ $_c(1) $+ ]
n370=
n371=    if ($hget(x_perform,on_joinme)) _perfd $ifmatch
n372=
n373=    :next
n374=    if ($nick($2,0,a) == 1) && ($me isop $2) {
n375=      nickcol $me $2 $_ncread(1)
n376=      if ($_n(chan.defmodes)) .raw MODE $2 $ifmatch
n377=      iblupd $2
n378=      if ($hget(x_spambot,status)) && (!$hget(x_spambot,event)) && ($istok($hget(x_spambot,chans),$2,44)) spambot $2
n379=    }
n380=    else {
n381=      .timer.c $+ $2 1 5 colournicks $2
n382=      if (%§.nets-ialupd == 1) ialupd $2
n383=    }
n384=    unset $v%(jjoin.,$2) $v%(synch.t.,$2) $v%(jkicked.,$2) $v%(topic,$2) $v%(cycled.,$2)
n385=  }
n386=  halt
n387=}
n388=;bans
n389=raw 367:*:{
n390=  if ($chan($2).ibl == $inmode) && ($2 !ischan) halt
n391=  if ($hget(x_vars,$+(iblupd.,$2))) {
n392=    if ($gettok($4,1,33) == $me) _process.tempbans $2 $3
n393=    halt
n394=  }
n395=  elseif ($_v%(aaunban.,$2)) {
n396=    var %t = $ifmatch
n397=    if ($5 isnum) && ($calc($ctime - $5) >= %t) && ($me isop $2) set $v%(banstoreset.,$2) $addtok($_v%(banstoreset.,$2),$3,32)
n398=    halt
n399=  }
n400=  elseif ($_v%(aunban.,$2)) { var %lb = $ifmatch | set $v%(aunbann.,$2) $deltok($instok($_v%(aunbann.,$2),$3,1,32),$calc(%lb +1),32) }
n401=  elseif ($_v%(resetall.,$2)) {
n402=    if ($len($_v%(banstoreset.,$2)) > 850) { _arbans - $2 $_v%(banstoreset.,$2) | unset $v%(banstoreset.,$2) }
n403=    set $v%(banstoreset.,$2) $addtok($_v%(banstoreset.,$2),$3,32)
n404=  }
n405=  elseif ($_v%(resetmine.,$2)) {
n406=    if ($gettok($4,1,33) == $me) { inc $v%(bcountme.,$2) | set $v%(banstoreset.,$2) $addtok($_v%(banstoreset.,$2),$3,32) }
n407=  }
n408=  else {
n409=    _addban $2 $3 $+ $chr(9) $+ $_c(4) $+ $iif($4,$4,-) $+  $+ $chr(9) $+ $iif($5,$validbandur($calc($ctime - $5)) ago,-)
n410=    if ($3 iswm %§.myaddress) || ($3 iswm $puttok(%§.myaddress,$ip,2,64)) set $v%(banned.,$2) $addtok($_v%(banned.,$2),$3,32)
n411=  }
n412=  inc $v%(bcount.,$2) | halt
n413=}
n414=;bans end
n415=raw 368:*:{
n416=  if ($hget(x_vars,$+(iblupd.,$2))) _--unset vars $+(iblupd.,$2)
n417=  elseif ($_v%(aunbann.,$2)) .raw mode $2 -bbbb $_v%(aunbann.,$2))
n418=  elseif ($_v%(banstoreset.,$2)) _arbans - $2 $ifmatch
n419=  elseif ($_v%(aaunban.,$2)) unset $v%(aaunban.,$2)
n420=  elseif (!$_v%(bcount.,$2)) echo $2 $logo No bans found for $2
n421=  elseif ($_v%(resetmine.,$2)) && (!$_v%(bcountme.,$2)) echo $2 $logo No bans set by you were found for $2
n422=  elseif ($window($+(@Bans ,$2))) {
n423=    window -rb $+(@Bans ,$2)
n424=    if ($me isop $2) && ($_v%(banned.,$2)) .timer 1 0 _rmmybans $2 $ifmatch
n425=  }
n426=
n427=  unset $v%(reset*.,$2) $v%(banned.,$2) $v%(banstoreset.,$2) $v%(aunban*.,$2)) $v%(bcount*.,$2) | halt
n428=}
n429=raw 369:*:if (!%§.none) ce3 Whois $sepline2 | unset %§.none | halt
n430=;MOTD
n431=raw 372:*:if (%§.motd) { aline @MOTD $iif($2,$2-,$_nchr(@motd)) | halt }
n432=raw 375:*:if (%§.motd) { if (!$window(@motd)) window -kl @MOTD $_gcoord(motd,-1 -1 350 250) $_@font | halt } | if ($skipmotd) halt
n433=;motd end
n434=raw 376:*:if (%§.motd) { unset %§.motd | halt } | if ($skipmotd) halt
n435=raw 377:*:se - $2- | halt
n436=;you're an ircop
n437=raw 381:*:if (%§.oper.user) && ($istok($hget(x_sets,oper),$me,44) == $false) .timer 1 0 operpass | else unset %§.oper.* | sle You are now an IRC Operator | halt
n438=raw 391:*:sle Server time: $3- | halt
n439=raw 341:*:ale $_c(3) $+ $2 has been invited to $3- | halt
n440=
n441=;no such nick
n442=raw 401:*:{
n443=  if ($isredir($2)) {
n444=    unset $v%(redir.,$ifmatch)
n445=    ale Not redirecting anymore ( $+ $2: no such nick/channel)
n446=    halt
n447=  }
n448=  if ($_v%(lastnoticed.,$2)) { _ovn.manual $2 $ifmatch | unset $v%(lastnoticed.,$2) | halt }
n449=  if ($_v%(whoisl.,$2)) halt
n450=  ale $_c(3) $+ $2: $3-
n451=  if ($query($2)) .timer 1 0 _closethis $2
n452=  halt
n453=}
n454=
n455=;no such nick/server
n456=raw 402:*:if ($_v%(whoisl.,$2)) { _addwhoisl $2 $+ ;<not here> | halt } | ale $_c(3) $+ $2: $3- | halt
n457=raw 403:*:ale [ $+ $2 $+ ] $3- | halt
n458=
n459=;no such channel
n460=raw 404:*:{
n461=  if ($isredir($2)) {
n462=    unset $v%(redir.,$ifmatch)
n463=    ale Not redirecting anymore ( $+ $2: no such nick/channel)
n464=  }
n465=  else ale [ $+ $2 $+ ] $3-
n466=  halt
n467=}
n468=raw 405:*:ale [ $+ $2 $+ ] $3- | halt
n469=raw 406:*:set -u10 %§.none 1 | ale $_c(3) $+ $2: $3- | halt
n470=
n471=;invalid command
n472=raw 421:*:{
n473=  if ($2 == self-lag) _lagcheck
n474=  elseif ($2 == silence) {
n475=    .timersilence.* off
n476=    if (%§.lastsilence) {
n477=      var %a = $wildtok(%§.lastsilence,*@*,1,32)
n478=      if (%a isignore) .ignore -r %a
n479=      ignore %§.lastsilence
n480=    }
n481=    sr -t Error Looks like your server/network doesn't support the SILENCE command. $iif(%§.lastsilence,Using ignore instead.)
n482=    unset %§.lastsilence
n483=    _unset prot silence
n484=  }
n485=  else ale Error: $+ $_c(3) / $+ $upper($2) is an unknown command.
n486=  halt
n487=}
n488=raw 429:*:halt
n489=raw 432:*:ale [ $+ $2 $+ ] $3- | halt
n490=
n491=;nick in use
n492=raw 433:*:{
n493=  if ($2 == $me) { ale That nick is yours already | halt }
n494=  if (%§.starttime) {
n495=    ale Nick $2 is in use. (Press ShiftF12 to take nick when released)
n496=    ale Retrieving /WHOIS Info for $2
n497=    wi $2
n498=  }
n499=  else ale $2-
n500=  set -u30 %§.ret.nick.prev $2
n501=  if ($hget(x_away,away)) .timer 1 10 _retnicka
n502=  halt
n503=}
n504=raw 439:*:sle ( $+ $2 $+ ) $3- | halt
n505=;nick is not on chan
n506=raw 441:*:if ($istok(%§.last-penalty,$2,44) == $false) echo $3 $logo $_c(3) $+ $2 is not on $3 | halt
n507=raw 442:*:sle $2- | halt
n508=raw 443:*:sle $2- | halt
n509=raw 467:*:ale [ $+ $2 $+ ] $3- | halt
n510=raw 468:*:ale [ $+ $2 $+ ] $3- | halt
n511=
n512=;chan full
n513=raw 471:*:if (!$timer($+(retry.,$2))) { if (%§.s^c) var %.f9 = , or ShiftF9 to use ChanServ invite | elseif (%§.network == undernet) var %.f9 = , or ShiftF9 to use X invite | ale Cannot join $+ $_c(3) $2 $+ , is full (+l) (Press CtrlF9 to retry every 5s $+ %.f9 $+ ) | set -u60 %§.chan.full $addtok(%§.chan.full,$2,164) } | halt
n514=raw 472:*:ale $_c(3) $+ $2  $+ $3- | halt
n515=;invite only
n516=raw 473:*:if (%§.s^n) var %i = (Press ShiftF9 to use ChanServ) | elseif (%§.network == undernet) var %i = (Press ShiftF9 to use X) | ale Cannot join $+ $_c(3) $2 $+ , is invite only (+i) %i | set -u60 %§.invite.only $addtok(%§.invite.only,$2,164) | halt
n517=;banned
n518=raw 474:*:{
n519=  if (%§.s^n) || (%§.network == undernet) var %t = (Press F8 to try to unban)
n520=  ale You are banned from $+ $_c(3) $2 $+  %t
n521=  set -u60 %§.banned.from $2
n522=  halt
n523=}
n524=;chan key
n525=raw 475:*:ale Cannot join $+ $_c(3) $2 $+ , key required (+k) | halt
n526=raw 477:*:ale [ $+ $2 $+ ] $3- | halt
n527=
n528=;invalid ban/banlist full
n529=raw 478:*:{
n530=  ale [ $+ $2 $+ ] - $3 - $4-
n531=  if ($gettok($3,2,64) != *) {
n532=    var %lb = $iif($hget(x_sets,remove.lastbans),$ifmatch,4)
n533=    sr -t Info Banlist for $2 is full. $+ $crlf $+ Removing oldest %lb entries...
n534=    set $v%(aunban.,$2) %lb
n535=    .raw mode $2 +b
n536=  }
n537=  halt
n538=}
n539=raw 482:*:ale [ $+ $2 $+ ] $3- | halt
n540=raw 501:*:ale $2- | halt
n541=raw 502:*:ale $2- | unset $v%(mode.,*) | halt
n542=raw 554:*:ale $3- | halt
n543=raw 554:*:ale [ $+ $2 $+ ] $3- | halt
n544=raw 555:*:ale [ $+ $2 $+ ] $3- | halt
n545=raw 600:*:halt
n546=raw 601:*:halt
n547=raw 602:*:halt
n548=raw 603:*:halt
n549=raw 604:*:_var $+(notify.,$2) $iif($5 isnum,$5,0) | halt
n550=raw 605:*:halt
n551=raw 606:*:halt
n552=raw 607:*:halt
n553=raw 800:*:halt
n554=raw 801:*:ale [ $+ $2 $+ ] $3- | halt
n555=raw 803:*:ale [ $+ $2 $+ ] $3- | halt
n556=raw 804:*:ale [ $+ $2 $+ ] $3- | halt
n557=raw 805:*:ale [ $+ $2 $+ ] $3- | halt
n558=raw 812:*:return
n559=raw 818:*:ale [ $+ $2 $+ ] $3- | halt
n560=raw 819:*:ale [ $+ $2 $+ ] $3- | halt
n561=raw 900:*:ale [ $+ $2 $+ ] $3- | halt
n562=raw 913:*:ale [ $+ $2 $+ ] $3- | halt
n563=raw 999:*:se (Error) $3- | halt
n564=
n565=#ex.custom on
n566=raw 0:*:se $1- | halt
n567=raw *:*:se ( $+ $numeric $+ ) $2- | halt
n568=#ex.custom end
n569=;
n570=alias -l _raws {
n571=  if (!$window($1)) {
n572=    window -klbh $1 $_gcoord(ban,-1 -1 350 200) $_@font
n573=    titlebar $1 list for $2
n574=    aline $1 $_c(1) $+  $remove($1,@) Mask
n575=    aline $1 $_nchr($1)
n576=  }
n577=  aline $1 $3
n578=  halt
n579=}
n580=alias -l _raws2 if ($window($1)) window -a $1 | else echo $2 $logo No $remove($1,@) $+ s found for $2 | halt
n581=alias -l _closethis if ($query($1)) && ($input(User is not on IRC. $+ $crlf $+ Close query?,8)) close -m $1
n582=;
n583=;EOF