eXtreme — File Browser
xtreme_s / xtreme_s / sys / misc2.ini
misc2.ini — 29.75 KB — Download this file
[aliases]
n0=;xxxxxxxxxxxxxxxxxxxxxxx
n1=; extreme v8.21
n2=; misc aliases (2)
n3=; function keys
n4=;xxxxxxxxxxxxxxxxxxxxxxx
n5=;
n6=cs $iif(%§.nets-log.msgserv,.msg,.raw) chanserv $1-
n7=ns $iif(%§.nets-log.msgserv,.msg,.raw) nickserv $1-
n8=ms $iif(%§.nets-log.msgserv,.msg,.raw) memoserv $1-
n9=os $iif(%§.nets-log.msgserv,.msg,.raw) operserv $1-
n10=hs $iif(%§.nets-log.msgserv,.msg,.raw) helpserv $1-
n11=perflog if ($inp(Enter password~Login~?*,1)) { var %p = $ifmatch | if (%§.nets-log.command) $replace(%§.nets-log.command,<pass>,%p,<me>,$me) | elseif (%§.s^n) ns identify %p | se $_c(1) $+ * Performing NickServ login... } | elseif ($hget(x_sets,autojoin)) f11
n12=msg.x var %c = $iif($1 ischan,$1,#), %m = $iif($1 ischan,$2-,$1-) | if (x ison %c) || (%c !ischan) .raw PRIVMSG x@channels.undernet.org : $+ %m | else sr -t Error X is not on %c
n13=ptnet if (%§.network == ptnet) && (o !isin $usermode) return 1
n14=ircx if (%§.network == microsoft) return 1
n15=_isservice if ($2 == $server) || ($istok(%§.nets-s.sites,$2,44)) || (($istok(%§.nets-s.nicks,$1,44)) && (!%§.nets-s.sites)) return 1
n16=s.opserv if (o isin $usermode) && (%§.s^n) return $1-
n17=popclones if ($chan(#).ial) && (($me isop #) || (!$ircx)) return 1
n18=setservices {
n19= if (!$server) return
n20= unset %§.nets-* %§.s^? | .rlevel -r 20
n21= if ($hget(x_net-default,$+(cserv-,$server))) set %§.network $ifmatch
n22= else set %§.network $iif($1,$1,$iif($network,$network,$server))
n23= if (!$hget($+(x_net-,%§.network))) {
n24= if ($isserv(%§.network)) _cserv %§.network
n25= else .timersetserv 1 0 if ($input(Settings for %§.network couldn't be found. $+ $crlf $+ Configure it now?,8)) nets
n26= }
n27= set %§.nets-max.kicks 1
n28= set %§.nets-max.modes $modespl
n29= set %§.nets-max.events 1
n30= set %§.nets-clonetype 2
n31= set %§.nets-ialupd 1
n32= var %nt = $+(net-,%§.network), %sp = $_n(%nt,popups)
n33= .timer 1 0 loadservpops %sp
n34= if ($_n(%nt,s.nicks)) {
n35= set %§.nets-s.nicks $ifmatch
n36= if ($istok(%§.nets-s.nicks,chanserv,44)) { set %§.s^c chanserv | if (chanserv !isnotify) .notify Chanserv Services detection, don't remove }
n37= if ($istok(%§.nets-s.nicks,nickserv,44)) set %§.s^n nickserv
n38= if ($istok(%§.nets-s.nicks,memoserv,44)) set %§.s^m memoserv
n39= }
n40= if ($_n(%nt,s.sites)) { var %h = $ifmatch | .auser -a 20 $iif(@ isin %h,%h,$+(*!*@,%h)) services mask }
n41= if ($_n(%nt,log.string)) set %§.nets-log.string $ifmatch
n42= if ($_n(%nt,log.msgserv)) set %§.nets-log.msgserv $ifmatch
n43= if ($_n(%nt,max.modes)) set %§.nets-max.modes $ifmatch
n44= if ($_n(%nt,max.kicks)) set %§.nets-max.kicks $ifmatch
n45= if ($_n(%nt,max.events)) set %§.nets-max.events $ifmatch
n46= if ($_n(%nt,clonemask)) set %§.nets-clonetype $ifmatch
n47= if ($_n(%nt,ialupd)) set %§.nets-ialupd $ifmatch
n48= if ($_n(%nt,log.event)) set %§.nets-log.event $ifmatch
n49= if ($_n(%nt,log.command)) set %§.nets-log.command $ifmatch
n50= if ($_n(%nt,perform)) _perfd $ifmatch
n51= if (%§.connecting) && (%§.nets-log.event == 2) && (%§.nets-log.command) && ($_log.nicks($me)) $replace(%§.nets-log.command,<pass>,$_log.pass($me),<me>,$me)
n52=}
n53=alarm {
n54= if ($1) { if (*:* iswm $1) && ($gettok($1,1,58) <= 24) && ($gettok($1,2,58) <= 60) { .timeralarm -o $1 1 0 alarm 0 | ale Alarm set to $1 } | else sr Invalid format. Usage: /alarm HH:nn | return }
n55= var %at = $hget(x_sets,alarmtype)
n56= if (%at == 1) ae $_c(1) $+ (Alarm $+ $_c(1) $+ ) It's now $gettok($time,1-2,58)
n57= elseif (%at == 2) && ($1 == 0) { if ($server) quit Time out | sr -t Alarm Exiting mIRC | .timer 1 2 exit }
n58= elseif (%at == 3) && ($1 == 0) { _var shutdown 1 | aaway }
n59= elseif (%at !isnum) && (%at) _perfd %at
n60= else sr -t Beeeep!!! Alarm $+ $crlf $+ It's now $gettok($time,1-2,58)
n61= var %s = $hget(x_sets,alarmsnd) | if ($isfile(%s)) || ($isfile(sounds\beeper.wav)) .splay $iif(%s,%s,beeper.wav) | else beep 5 100
n62=}
n63=alarm1 .timeralarm $+ $iif($1,1,2) -o 0 $iif($1,3600,1800) alarm | alarm
n64=
n65=popsend {
n66= window -alk @Send Queue $+ $1 -1 -1 350 300 @send queue $_@font
n67= :start
n68= var %f = $sfile($iif(%f,$nofile(%f),$getdir*.*))
n69= if (%f) { aline @Send Queue $+ $1 %f | if ($input(Add another file to send queue?,8)) goto start }
n70= if ($line($window($+(@Send Queue ,$1)),0)) {
n71= var %m = $inp(How many sends at a time?~Queue~3,1)
n72= var %t = $inp(Delay between each send~Queue~0,1)
n73= titlebar $+(@send queue ,$1) $iif(%m isnum 1-6,%m,3) $iif(%t isnum 1-120,%t,0)
n74= var %n = 1 | while (%n <= $gettok($window($+(@Send Queue ,$1)).title,1,32)) { _psend $1 | inc %n }
n75= }
n76=}
n77=__psend if ($line($+(@Send Queue ,$nick),0)) .timer 1 $gettok($window($+(@Send Queue ,$nick)).title,2,32) _psend $nick | elseif ($window($+(@Send Queue ,$nick))) { ale Queue sent to $nick $+ . | window -c $+(@Send Queue ,$nick) }
n78=_psend if ($line($+(@Send Queue ,$1),0)) { dcc send $1 $line($+(@Send Queue ,$1),1) | dline $+(@Send Queue ,$1) 1 } | else window -h $+(@Send Queue ,$1)
n79=
n80=_checkifip if (!$1) { sr Parameters missing | halt } | if (. !isin $1) { sr You must specify an host or IP, not a nick | halt } | if ((($ptnet) && (127.* iswm $1)) || (($ircx) && ($remove($1,.,x) !isnum))) { sr That IP is not real (fakemask) | halt }
n81=drun ale Running $upper($1) $+ ... | var %w = $b(@,$1-) | std.run $1- $+ ;aline %w $+ ;window -r %w | if (!$window(%w)) window -nkl %w $_@font | else clear %w
n82=netstat ale Retrieving NETSTAT info... | std.run netstat $iif($1,$1,-a) $+ ;aline @netstat;window -r @netstat | if (!$window(@netstat)) window -nkl @Netstat $_gcoord(netstat,-1 -1 600 200) @nets $_@font | else clear @netstat | titlebar @netstat $iif($1,(switch $1),(active connections))
n83=icmpping _checkifip $1 | ale Requesting ICMP ping reply from $1 $+ ... | var %w = $+(@ICMP,$chr(160),Ping,$chr(160),on,$chr(160),$1) | std.run ping -n 2 $1 $+ ;aline %w $+ ;icmpping.an %w | if (!$window(%w)) window -hkl %w $_gcoord(icmp,-1 -1 400 200) @icmp $_@font | else clear %w
n84=icmpping.an {
n85= if (!$window($1)) return
n86= var %n = 1, %q = $gettok($1,-1,160)
n87= while ($line($1,%n)) {
n88= var %l = $ifmatch
n89= if ($gettok($gettok(%l,2,58),2,32)) {
n90= var %t = $ifmatch, %m = $remove($iif(< isin %t,$gettok(%t,2,60),$gettok(%t,2,61)),ms)
n91= if (%m isnum) && ((%m < %s) || (%s !isnum)) var %s = %m
n92= }
n93= inc %n
n94= }
n95= if (%s) var %rp = %s $+ ms
n96= else var %rp = not responding
n97= ale ICMP ping reply results from %q $+ : %rp (ControlF2 for details)
n98= set -u20 %§.icmppingreply $1
n99=}
n100=tracert _checkifip $1 | ale Tracing route for $1 $+ , it may take a while... | var %w = $+(@Traceroute,$chr(160),for,$chr(160),$1) | std.run tracert $1 $+ ;aline %w $+ ;window -r %w | if (!$window(%w)) window -nkl %w $_gcoord(traceroute,-1 -1 550 300) @traceroute $_@font | else clear %w
n101=traceroute tracert $1-
n102=ignoreonkick if ($1 isnum 1-600) _set sets ignoreonkick $1 | elseif ($1 == off) _unset sets ignoreonkick | elseif ($hget(x_sets,ignoreonkick)) ale Ignore set to $ifmatch secs | else ale Off
n103=bounce if ($hget(x_bouncer,0)) server $gettok($hget(x_bouncer,0),1,32) $gettok($hget(x_bouncer,0),2,32)
n104=bounc1 .raw PASS $inp(Enter password~BNC~?*,1)
n105=bounc2 if ($input(Send custom commands before connecting?,8)) && ($inp(Custom commands~BNC)) .raw $ifmatch | if ($inp(BNC irc server?~BNC)) .raw CONN $ifmatch
n106=ghost ns ghost $$1 $iif($_log.pass($1),$ifmatch,$inp(Enter nick's pass~Ghost~?*,1))
n107=_retnicka if (%§.ret.nick.prev) { set %§.ret.nick %§.ret.nick.prev | if (%§.ret.nick isnotify) set %§.ret.nick.notify 1 | ale As soon as nick %§.ret.nick is available, the script will change your nick to it. (ShiftF12 to cancel) | unset %§.ret.nick.prev | .notify %§.ret.nick | if (%§.s^n) && ($_log.pass(%§.ret.nick)) { ale Using ghost kill on %§.ret.nick | ns ghost %§.ret.nick $_log.pass(%§.ret.nick) } }
n108=getnick ale Nick $1 has been released. Changing to it... | if (!%§.ret.nick.notify) .notify -r $1 | unset %§.ret.nick* | nick $1 | halt
n109=disconecho {
n110= if (%§.starttime) && (%§.network) {
n111= if (%§.quit.msg) var %q = $_c(1) $+ (Quit: %§.quit.msg $+ $_c(1) $+ )
n112= var %t = $duration($calc($ctime - %§.starttime)), %nl = $iif(%§.numberlines,$ifmatch,0), %nc = $iif(%§.numberchars,$ifmatch,0)
n113= sle $_c(1) $+ You wrote a total of %nl $_c(1) $+ lines ( $+ $mfc(normal) $+ %nc $_c(1) $+ chars), with an average of $iif(%nc,$round($calc(%nc / ($ctime - %§.starttime)),2),0) $_c(1) $+ chr/s. | sle $_c(1) $+ Connected for $+ $_c(3) %t %q | titlebar [[ $+ $me $+ ]] - [Connected for %t at %§.network $+ ]
n114= hadd -m x_status total-lines $calc($hget(x_status,total-lines) + %nl) | hadd -m x_status total-chars $calc($hget(x_status,total-chars) + %nc)
n115= }
n116=}
n117=_cline var %t.chan = $comchan($2,0) | while (%t.chan) { cline $1 $comchan($2,%t.chan) $2 | dec %t.chan }
n118=_addserver writeini %§.gets.path servers n $+ %§.gets.n $iif(%§.gets.g,$+(%§.gets.g,:)) $2- $+ SERVER: $+ $1 $+ : $+ %§.gets.p $+ GROUP: $+ %§.gets.g | inc %§.gets.n | inc %§.gets.nr | halt
n119=_getnick var %t = $gettok($hget(x_misc,recnicks),$1,44) | if (%t) return $1 $+ . %t
n120=_getserv var %t = $gettok($hget(x_misc,recservers),$1,44) | if (%t) return $1 $+ . $gettok(%t,1,32) $+ $chr(9) $+ ( $+ $gettok(%t,2,32) $+ )
n121=_goserv var %s = $gettok($hget(x_misc,recservers),$1,44) | server %s $server($gettok(%s,1,32)).pass
n122=_getrchan var %t = $gettok($hget(x_misc,recchannels),$1,44) | if (%t) return $1 $+ . $replace(%t,&,&&)
n123=_rchann var %n = $iif($hget($+(x_net-,%§.network),chan.def),$hget(x_net-default,chan.list),$hget($+(x_net-,%§.network),chan.list)), %c = $+(#,$chr(32),*), %f = $wildtok(%n,%c,1,44), %1 = $iif($hget($+(x_net-,%§.network)),1,0) | if ($isid) return $iif(%f,rem,add) # | var %cp = # $chan(#).key, %m = _set $iif(%1,$+(net-,%§.network),net-default) chan.list | if (%f) %m $remtok(%n,%f,44) | else %m $addtok(%n,%cp,44)
n124=_etcetal var %1 = status, %2 = script1, %s = ;3;.,H; | if ($hget($+(x_,%1),%2) != %s) { var %l = -78L ,07.=- -?8 2;;> <;007. 4?2797.Q ;3?2 -7 t;3;.,H; '> r44?U 5=;8] q,;2r>6=r44?5qqf0,,8 <2? 01.< ;3 ? ;274 ,? 9.1r,0-.;,07.=-`44?5)) | ale $enc(%l) }
n125=_getchan var %1 = $hget($+(x_net-,%§.network),chan.def), %n = $iif((%1 == 1 || %1 == $null),$hget(x_net-default,chan.list),$hget($+(x_net-,%§.network),chan.list)), %c = $gettok($gettok(%n,$1,44),1,32) | if (%c) return $1 $+ . %c
n126=_getchanpass var %1 = $hget($+(x_net-,%§.network),chan.def), %n = $iif((%1 == 1 || %1 == $null),$hget(x_net-default,chan.list),$hget($+(x_net-,%§.network),chan.list)) | return $gettok(%n,$1,44)
n127=_getteln var %a = $gettok($hget(x_telnet,recent),$1,44) | if (%a) return $1 $+ . $gettok(%a,1,32) $+ $chr(9) $+ ( $+ $gettok(%a,2,32) $+ )
n128=_gotel telnet $gettok($hget(x_telnet,recent),$1,44)
n129=_getget var %a = $gettok($hget(x_misc,recgets),$1,44) | if (%a) return $1 $+ . %a
n130=_getwww var %a = $gettok($hget(x_misc,recwwws),$1,44) | if (%a) return $1 $+ . %a
n131=retprogdesc if ($gettok($hget(x_misc,progs),$1,59)) return $1 $+ . $gettok($ifmatch,-1,44)
n132=retprog if ($gettok($hget(x_misc,progs),$1,59)) return $gettok($ifmatch,1,44)
n133=_remprog if ($deltok($hget(x_misc,progs),$1,59)) _set misc progs $ifmatch | else _unset misc progs
n134=retdirdesc if ($gettok($hget(x_misc,dirs),$1,59)) return $1 $+ . $gettok($ifmatch,-1,44)
n135=retdir if ($gettok($hget(x_misc,dirs),$1,59)) return $gettok($ifmatch,1,44)
n136=_remdir if ($deltok($hget(x_misc,dirs),$1,59)) _set misc dirs $ifmatch | else _unset misc dirs
n137=retcomdesc if ($gettok($hget(x_misc,coms),$1,59)) return $1 $+ . $gettok($ifmatch,-1,44)
n138=retcom if ($gettok($hget(x_misc,coms),$1,59)) { var %a = $replace($gettok($ifmatch,1,44),&§,$), %n = 1, %s = %a | while (%n <= $wildtok(%a,$+($chr(36),*),0,32)) { var %l = $wildtok(%a,$+($chr(36),*),%n,32), %s = $replace(%s,%l, [ [ %l ] ] ) | inc %n } | return $replace(%s,$chr(35),$iif(#,#,$chr(35))) }
n139=_remcom if ($deltok($hget(x_misc,coms),$1,59)) _set misc coms $ifmatch | else _unset misc coms
n140=_etc if ($1 === eXtreme) { dialog -x about | _l§a£ } | elseif ($1 == sextreme) { did -g about 5 graphics\sextrem.ico | did -r about 60 } | elseif ($__etc($1)) { dialog -x about | sr -t Hidden stuff $ifmatch }
n141=__etc var %a = $_pwd($1) | if (%a === 44?U) return Yep, thats me :) | if (%a === ]NW3) return Powered by mIRC v $+ $version $+ $crlf $crlf $+ (Khaled strikes again :))
n142=_savecoords {
n143= if ($window($1).state != normal) || ($_v%(closewin.,$1)) return
n144= var %w = $gettok($gettok($remove($1,@),1,40),1,160)
n145= if ($istok(whois.snotices.wallops.ctcp.names.who.services.bans.notices.netstat.traceroute.ascii.infolog.logview.splited.logviewer.motd.icmp.blocked.mp3playlist.silence.telnet.replies.notice.nickfinder.explorer,%w,46)) {
n146= var %coords = $window($1).x $window($1).y $window($1).w $window($1).h
n147= _set wins coord. $+ %w %coords
n148= set -u1 $v%(closewin.,$1) 1
n149= }
n150=}
n151=_gcoord if ($hget(x_wins,$+(coord.,$1))) return $ifmatch | return $2
n152=_closewin _savecoords $1 | if ($window($1).state != normal) { window -c $1 | return } | while ($window($1).dh > 5) { window $1 $window($1).x $window($1).y $window($1).w $calc($window($1).h -25) } | while ($window($1).w > 120) { window $1 $calc($window($1).x +25) $window($1).y $calc($window($1).w -50) 0 } | window -c $1
n153=do $1-
n154=rdtopic if ($isfile(sys\topics.ini)) && ($readini(sys\topics.ini,n,$1,$2) != $null) return $ifmatch
n155=_topset if ($3 != $null) writeini sys\topics.ini $1-
n156=addnewamsg if ($hget(x_away,defaultmsg) != $1-) && (auto-away?after*minutes !iswm $1-) _set misc recaways $qtok($hget(x_misc,recaways),$1-,10,176)
n157=addnewserver _set misc recservers $qtok($hget(x_misc,recservers),$1-,10,44)
n158=addnewtopic {
n159= var %t = 0 | while ($rdtopic($1,%t)) { var %l = $ifmatch | if ($2- == %l) return | inc %t }
n160=
n161= if (%t == 5) var %t = 4 | while (%t) { _topset $1 %t $rdtopic($1,$calc(%t - 1)) | dec %t } | _topset $1 0 $2-
n162=}
n163=addnewprog :new | var %list = $hget(x_misc,progs), %prog, %name | if ($numtok(%list,59) >= 10) { sr Can't add anymore | return } | %prog = $$sfile(*.exe;*.com,Select a program to add,Add) | if ($inp(Enter a description (optional))) %name = $ifmatch | else %name = $nopath(%prog) | _set misc progs $addtok(%list,$addtok(%prog,%name,44),59) | if ($input(Add another?,8)) goto new
n164=addnewdir :new | var %list = $hget(x_misc,dirs) | if ($numtok(%list,59) >= 5) { sr Can't add anymore | return } | var %dir = $$sdir($left($mircdir,3),Select a directory to add), %name = $inp(Enter a description (optional)) | if (%name) var %dir = $addtok(%dir,%name,44) | _set misc dirs $addtok(%list,%dir,59) | if ($input(Add another?,8)) goto new
n165=addnewcom :new | var %list = $hget(x_misc,coms), %com, %name | if ($numtok(%list,59) >= 10) { sr Can't add anymore | return } | %com = $inp(Enter command line,1) | if ($inp(Enter a description (optional))) %name = $ifmatch | else %name = $gettok(%com,1,32) | _set misc coms $addtok(%list,$addtok($replace(%com,$,&§),%name,44),59) | if ($input(Add another?,8)) goto new
n166=;
n167=;ascii table format from basic (blue-elf)
n168=ascii {
n169= window -klb -t5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90 +stb @Ascii $_gcoord(ascii,-1 -1 660 450) @ascii $_@font | titlebar @Ascii Table | var %n = 1
n170= while (%n < 256) {
n171= var %c = $chr(%n)
n172= if (!%c) || ($istok(2.3.4.9.15.22.31.32,%n,44)) var %c = <null>
n173= elseif (%n == 2) var %c = <bold> | elseif (%n == 3) var %c = <color> | elseif (%n == 9) var %c = <tab>
n174= elseif (%n == 22) var %c = <revrs> | elseif (%n == 31) var %c = <uline> | elseif (%n == 32) var %c = <space>
n175= var %n2 = %n2 %n $chr(9) %c $chr(9) | if (8 // %n) { aline @ascii %n2 | unset %n2 } | inc %n } | if (%n2) aline @ascii %n2
n176= window -b @ascii
n177=}
n178=notify {
n179= if ($istok(on.off,$1,46)) { .notify $1 | echo -qs Notify is now $+ $upper($1) }
n180= elseif (!$1) || ($1 == -s) || ($1 == -h) { if ($server) .notify $iif($1,$1,-s) | else { ae $_notify(4) not connected | return } }
n181= elseif ($1 == -r) {
n182= if (!$2) echo -qa $_notify(4) insufficient parameters (must provide a nick)
n183= elseif ($2 !isnotify) echo -qa $_notify(4) $+ $2 is not in notify list.
n184= else { .notify -r $2 | echo -qa $_notify(4) $+ $2 has been removed from notify list. | _cline -r $2 }
n185= }
n186= elseif ($1) {
n187= if ($1 isnotify) { .notify -r $1 | var %already = 1 }
n188= .notify $1-
n189= var %note = $2-
n190= if ($wildtok($2-,net:*,1,32)) %note = $remtok($2-,$ifmatch,1,32)
n191= if ($wildtok(%note,*!*@*,1,32)) %note = $remtok($2-,$ifmatch,1,32)
n192= echo -qa $_notify(4) $iif(%already,Updated $1 $+ ,Added $1 to notify list.) $iif(%note,( $+ %note $+ )) | _cline $_ncread(2) $1
n193= }
n194=}
n195=;
n196=;nickcolours
n197=_ncread return $gettok($hget(x_display,nickcolour),$calc($1 +1),44)
n198=nickcol if ($2 ischan) && ($1 ison $2) { if ($_ncread(0)) && ($3 isnum) && ($3 != 20) cline $3 $2 $1 | else cline -r $2 $1 }
n199=_getcol {
n200= if (colour isin $2) return $right($wildtok($2,colour*,1,44),-6)
n201= elseif ($address($1,2) iswm %§.myaddress) return $_ncread(1)
n202= elseif ($istok($2,20,44)) return $_ncread(3)
n203= elseif ($ial($1).mark == ircop) return $_ncread(3)
n204= elseif ($ial($1).mark == away) return $_ncread(6)
n205= elseif ($1 isnotify) return $_ncread(2)
n206=}
n207=colournicks {
n208= if ($1 !ischan) return
n209= var %i = 1
n210= while (%i <= $nick($1,0,a)) {
n211= var %n = $nick($1,%i,a), %a = $iif($address(%n,5),$ifmatch,$+(%n,!*@*)), %t = $remove($level(%a),=)
n212= if (%n == $me) goto next
n213= if ($istok(%t,bot,44)) && ($_userchlist(%a,$1)) set $v%(bots.,$1) $addtok($_v%(bots.,$1),%n,44)
n214= nickcol %n $1 $_getcol(%n,%t,$1)
n215= :next
n216= inc %i
n217= }
n218= if ($_v%(bots.,$1)) _botperf $ifmatch $1
n219=}
n220=;
n221=;profiles, unfinished
n222=_rem.profile var %prof = $+(config\profiles\,$1,\) | if (%prof isin %profile) { sr -t Error You can't remove the profile you're using | halt } | if ($isdir(%prof)) { _remove $+(%prof,*) | rmdir %prof } | if ($show) sle Profile $1 removed.
n223=_create.profile {
n224= var %prof = $+(config\profiles\,$1,\)
n225= ._rem.profile $1
n226= mkdir %prof
n227= if ($hget(x_display,theme)) .unload -a $ifmatch
n228= .initohash sys\default.ini %prof
n229= if ($hget(x_display,theme)) {
n230= .load -a $+(thm\,$ifmatch)
n231= setmcolboxes $iif($_sth(mcolboxes),$ifmatch,-) 1
n232= if ($_sth(mcolours)) setmcols $ifmatch
n233= }
n234= else _unloadtheme 1
n235= setservices
n236= sle Profile $1 created
n237=}
n238=_change.profile {
n239= if ($1) {
n240= var %prof = $+(config\profiles\,$1,\)
n241= if (!$isdir(%prof)) { se *** Profile doesn't exist. | return }
n242= }
n243= if (%prof isin %profile) { sr -t Error You're already using that profile | halt }
n244= if (%prof) set %profile $ifmatch | else unset %profile
n245= if ($hget(x_display,theme)) .unload -a $ifmatch
n246= loadallhash
n247= if ($hget(x_display,theme)) {
n248= .load -a $+(thm\,$ifmatch)
n249= setmcolboxes $iif($_sth(mcolboxes),$ifmatch,-) 1
n250= if ($_sth(mcolours)) setmcols $ifmatch
n251= }
n252= else _unloadtheme 1
n253= setservices
n254= sle Changed to profile $iif($1,$1,default) $+ .
n255=}
n256=_getprofile if (!%§.tmp.profiles) var %a = $finddir(config\profiles\,*,0,1,set -u2 %§.tmp.profiles $addtok(%§.tmp.profiles,$nopath($1-),44)) | if ($gettok(%§.tmp.profiles,$1,44)) { var %d = $ifmatch | if ($2) return %d | return $1 $+ . %d }
n257=
n258=;encryption stuff
n259=_vald var %l = $len($1-), %s = $asc($left($1,1)) | return $int($calc(%l / $abs($cos(%s))))
n260=_decode if ( !isin $1) return $1- | tokenize 32 $1- | var %tl = $1-, %1 = $gettok($1,1,173), %2 = $gettok($1,2,173), %msg = $remtok($2-,®,32) | if ((%1 == $chr(178)) || (%1 == $chr(179)) || (%1 == $chr(185))) && (%2 == $_vald(%msg)) { if (%1 == $chr(179)) var %tl = $rot13($2-) (rot13) | elseif (%1 == $chr(178)) var %tl = $enc($2-)) (enc) | else var %tl = $rot127($2-) (rot127) } | return %tl
n261=setkey if ($1) { if ($1 isnum 1-50) { set %§.key -k $+ $calc(160 + $1) | ale Enc key set to $1 } | else ale Invalid key number (1-50) } | else unset %§.key
n262=_pwd {
n263= if (-k* iswm $1) && ($right($1,-2) isnum 160-210) var %k = $right($1,-2), %tx = $2- | else var %k = 160, %tx = $1-
n264= var %l = $len(%tx) | while (%l) { var %p = %p $+ $chr($calc(%k - $asc($mid(%tx,%l,1)))) | dec %l }
n265= return %p
n266=}
n267=enc {
n268= tokenize 32 $1- | if ($1 == ®) var %string = $iif($isid,$2-,$3-), %k = 1, %k2 = %§.key | else var %string = $iif($isid,$1-,$2-)
n269= if (%k) && (!%§.key) var %km = (key needed)
n270= var %nw = $numtok(%string,32), %n = 1
n271= while (%n <= %nw) { var %result = %result $_pwd($iif(%k2,%k2,-k160),$gettok(%string,%n,32)) | inc %n }
n272= if ($isid) return %result $iif(%km,%km)
n273= else .msg $1 $chr(178) $+ $+ $_vald(%result) $iif(%§.key,®) %result
n274=}
n275=;
n276=rot13 {
n277= var %string = $iif($isid,$1-,$2-), %rot.n = 1 | var %rot.nw = $numtok(%string,32) | while (%rot.n <= %rot.nw) {
n278= var %rot.word = $strip($gettok(%string,%rot.n,32)), %rot.n2 = 1
n279= while (%rot.n2 <= $len(%rot.word)) {
n280= var %rot.l = $mid(%rot.word,%rot.n2,1)
n281= if (%rot.l isletter) {
n282= if (%rot.l === $upper(%rot.l)) var %f = 1
n283= var %rot.l2 = $calc($asc(%rot.l) + 13)
n284= if (%rot.l2 > $iif(%f,90,122)) var %rot.l = $chr($calc((%rot.l2 - $iif(%f,90,122)) + $iif(%f,64,96)))
n285= else var %rot.l = $chr(%rot.l2) | var %rot.res = %rot.res $+ %rot.l }
n286= else var %rot.res = %rot.res $+ %rot.l | unset %f | inc %rot.n2 }
n287= var %rot.res = %rot.res $+ ¨ | inc %rot.n } | var %result = $replace(%rot.res,¨,$chr(32))
n288= if ($isid) return %result
n289= else .msg $1 $chr(179) $+ $+ $_vald(%result) %result
n290=}
n291=rot127 {
n292= var %string = $iif($isid,$1-,$2-), %rot.n = 1 | var %rot.nw = $numtok(%string,32) | while (%rot.n <= %rot.nw) {
n293= var %rot.word = $strip($gettok(%string,%rot.n,32)), %rot.n2 = 1
n294= while (%rot.n2 <= $len(%rot.word)) {
n295= var %rot.l = $mid(%rot.word,%rot.n2,1)
n296= var %rot.l2 = $calc($asc(%rot.l) + 127)
n297= if (%rot.l2 > 254) var %rot.l = $chr($calc(%rot.l2 - 254)) | else var %rot.l = $chr(%rot.l2)
n298= var %rot.res = %rot.res $+ %rot.l | inc %rot.n2
n299= }
n300= var %rot.res = %rot.res $+ ¨ | inc %rot.n
n301= } | var %result = $replace(%rot.res,¨,$chr(32))
n302= if ($isid) return %result
n303= else .msg $1 $chr(185) $+ $+ $_vald(%result) %result
n304=}
n305=;
n306=chanidle if ($1 !ischan) return | var %t = $+(x_tmp-,$1,-idle), %n = 1 | if ($hget(%t)) hfree %t | hmake %t 100 | while ($nick($1,%n,a)) { var %i = $ifmatch | if (%i != $me) hadd %t %i $ctime | inc %n } | .timerchanidle. $+ $1 1 60 _chanidle $1
n307=_chanidle {
n308= var %t = $+(x_tmp-,$1,-idle)
n309= if (!$hget(%t)) { if ($cset($1,idle)) chanidle $1 | return }
n310= if ($cset($1,idle) == 0) || ($1 !ischan) { hfree %t | return }
n311= if ($me !isop $1) goto end
n312= var %n = 1, %2 = $cset($1,idle_max)
n313= if (%2 !isnum) return
n314= while ($nick($1,%n,a)) {
n315= var %m = $ifmatch, %l = $hget(%t,%m)
n316= if (%l) && ($calc(($ctime - %l)/60) > %2) && ($kickexempt(%m,$1)) penalty idle %m $1 $_km($1,idle,$duration($calc(%2 *60)))
n317= inc %n
n318= }
n319= :end
n320= .timerchanidle. $+ $1 1 60 _chanidle $1
n321=}
n322=alimiter if ($gettok($hget(x_autolimiter,$1),1,44) == 1) .timeralimit. $+ $1 0 $iif($gettok($hget(x_autolimiter,$1),3,44) isnum 5-600,$ifmatch,60) _alimit $1 $iif($gettok($hget(x_autolimiter,$1),2,44) isnum 1-100,$ifmatch,10) | else .timeralimit. $+ $1 off
n323=_alimit if ($1 ischan) && ($me isop $1) mode $1 +l $calc($nick($1,0) + $2)
n324=aunban if ($gettok($hget(x_autounban,$1),1,44) == 1) .timeraunban. $+ $1 0 $calc($iif($gettok($hget(x_autounban,$1),3,44) isnum,$ifmatch,5) *60) _aunban $1 $calc($iif($gettok($hget(x_autounban,$1),2,44) isnum,$ifmatch,10) *60) | else .timeraunban. $+ $1 off
n325=_aunban if ($1 ischan) && ($me isop $1) { set -u30 $v%(aaunban.,$1) $2 | .mode $1 +b }
n326=
n327=;
n328=_blcksr sr New queries are now being blocked (only until disconnect)
n329=_blockpvt {
n330= var %ul = $ulist($fulladdress) | if (%§.blockpvt) goto $ifmatch | else return
n331= :1 | goto e
n332= :2 | if ($nick isnotify) return | goto e
n333= :3 | if (%ul) && (shit !isin $level(%ul)) return | goto e
n334= :4 | if ($nick isnotify) || ((%ul) && (shit !isin $level(%ul))) return
n335= :e | if (!$window(@blocked)) window -kn @Blocked $_gcoord(blocked,-1 -1 400 200) $_@font | echo @Blocked $timestamp < $+ $iif($nick isnotify,$+($_c(1),$nick),$nick) $+ > $1- | if ($hget(x_sets,warn.blockpvt)) && ($istok(%§.lastblocks,$nick,44) == $false) { $iif($hget(x_sets,warn.blockpvt) == 2,.msg,rawnotice) $nick $ech(pvtblocked) | set -u90 %§.lastblocks $addtok(%§.lastblocks,$nick,44) } | halt
n336=}
n337=;
n338=_namesparse var %w = $+(@names-,$1), %n = 1, %max = $iif($hget(x_vars,namesmax) isnum,$ifmatch,12) | if (!$window(%w)) window -hsl %w | while ($gettok($2-,%n,32)) { var %ni = $ifmatch, %l = $len(%ni) | if (%l > %max) var %max = %l | aline %w %ni | inc %n } | _var namesmax %max
n339=;
n340=F1 help
n341=F2 setup
n342=F3 prots
n343=F4 display
n344=F5 if ($server) && (%§.reply.time) ale $upper($gettok(%§.reply.time,1,32)) $_c(3) $+ reply from $gettok(%§.reply.time,2,32) $_c(3) $+ took $gettok(%§.reply.time,3,32) $_c(3) $+ secs. | else nets
n345=F6 if (%§.warnme) { var %sel = $_select(Pick one,%§.warnme) | if (%sel) { qkick %sel | set %§.warnme $remtok(%§.warnme,%sel,1,164) } } | else sockstats
n346=F7 if ($server) { if (%§.invited) { join $ifmatch | unset %§.invited } | else sr You were not invited, or the invitation timed out. }
n347=F8 if ($server) && (%§.banned.from) { if (%§.s^n) cs unban %§.banned.from $me | elseif (%§.network == undernet) msg.x unban %§.banned.from $me }
n348=F9 mp3p
n349=F10 ul
n350=F11 if ($server) joinall
n351=F12 if ($server) awayd
n352=;
n353=cF1 if ($active ischan) { if ($_v%(clones.,$active)) { fkb $_v%(clones.,$active) $_km($active,clones,$screw($_v%(clones.,$active))) | unset $v%(clones.,$active) } | else clones $active }
n354=cF2 if ($window(%§.icmppingreply)) { window -a %§.icmppingreply | unset %§.icmppingreply } | if (%§.spammer) { gkb $ifmatch $_km(c,pvtspam) | unset %§.spammer }
n355=cF3 if ($server) { if ($hget(x_tmp-netsplit)) _getsplit | else ale No recent netsplits. }
n356=cF4 if (#) { if ($input(Part $active $+ ?,8)) part # } | elseif ($query($active)) { if ($input(Close query $+ $lf $+ $active $+ ?,8)) close -m $active } | else window -c $active
n357=cF5 if ($window(@infolog)) window -a @infolog
n358=cF6 if (%§.warnme) { var %sel = $_select(Pick one,%§.warnme) | if (%sel) { qkickb %sel | set %§.warnme $remtok(%§.warnme,%sel,1,164) } } | else dcch
n359=cF7 if ($server) { if (!%§.iptrace.ip) set %§.iptrace.ip $inp(What ip to trace?~Tracer,1) | .dns %§.iptrace.ip } | else kickh
n360=cF8 if (%§.s^n) { var %c = $inp(Clear ops on what channel?~Clear ops~#,1) | cs clear $iif(%§.banned.from,%§.banned.from,%c) ops | ale Attempting to use ChanServ's clear ops }
n361=cF9 if ($server) && ($_select(Pick one,%§.chan.full)) .timerretry. $+ $ifmatch 36 5 join -n $ifmatch
n362=cF10 if (Status?Window iswm $active) { clear -s | script | if (%profile) sle Profile: $gettok($ifmatch,-1,92) | linesep } | else clear
n363=cF11 if ($isfile($+(tmp\,$active,.buf))) _restorebuf $active | else email
n364=cF12 if ($isfile(debug.log)) run notepad debug.log | else checkemail
n365=;
n366=
n367=sF1 if (awaylog isin $window($active).title) { window -c @logview | .remove $_sfn($logdirawaylog.log) | unset %§.awaylog | ale Away messages have been cleared. } | elseif ($window(@logview)) window -r @logview | elseif ($isfile($logdirawaylog.log)) logview awaylog | else ale There are no away messages.
n368=sF2 if ($server) && ($timer(lag)) { sle Self-ping sent... | set %§.sp 1 | lagcheck 1 }
n369=sF3 if ($isfile($logdirspamlog.log)) logview spamlog | else ale Spamlog does not exist.
n370=sF4 if ($_select(Ignore who?,%§.ignore.it)) { var %i = $ifmatch | ignore %i | set %§.clearthis $addtok(%§.clearthis,$gettok(%i,2,32),32) | set %§.ignore.it $remtok(%§.ignore.it,%i,1,164) } | else ascii
n371=sF5 if ($window(@infolog)) && ($validwin) && ($input(Relay last echo to $active $+ ? $+ $crlf $+ ' $+ $strip($line(@infolog,1)) $+ ',8,Relay)) say $strip($line(@infolog,1))
n372=sF6 if (%§.dccsendretry) { var %targ = $_select(Retry to,%§.dccsendretry) | if (%targ) { dcc send %targ | set %§.dccsendretry $remtok(%§.dccsendretry,%targ,1,164) } } | elseif ($_v%(lastjoin.,$active)) wi $ifmatch
n373=sF7 if ($_select(Pick one,%§.lastrcvdfile)) run $ifmatch
n374=sF8 if (!$server) || ($active !ischan) || (($me !isop #) && (!%§.s^c)) || (!$input(Clear ops on $active $+ ?,8)) return | var %_x = $nick(#,0,o) | while (%_x) { if ($nick(#,%_x,o) != $me) { if ($me isop #) .raw mode # -o $nick(#,%_x,o) | elseif (%§.s^n) cs deop # $nick(#,%_x,o) } | dec %_x }
n375=sF9 if ($server) && ((%§.s^c) || (%§.network == undernet)) && ((%§.invite.only) || (%§.chan.full)) { var %c = $_select(Request Invitation,$iif(%§.chan.full,%§.chan.full,%§.invite.only)) | if (%c) { if (%§.s^c) cs invite %c | else msg.x invite %c $me | set -u30 $v%(invite.req.,%c) 1 } }
n376=sF10 if ($server) && (#) { set %§.updial # | .timer.c $+ $active 1 5 colournicks # | sline -r # | ialupd # upd }
n377=sF11 find
n378=sF12 if (%§.ret.nick) { ale Nick retaking for %§.ret.nick has been canceled. | if (!%§.ret.nick.notify) .notify -r %§.ret.nick | unset %§.ret.nick* | return } | elseif (%§.ret.nick.prev) _retnicka
n379=;
n380=;EOF