J-Script — File Browser
J-Scriptv2.2 / J-Scriptv2.2 / ini / jserv.ini
jserv.ini — 18.49 KB — Download this file
[aliases]
n0=; J-§ç®îpt
n1=; Do NOT edit this file!!
n2=jserv {
n3= if ($1 == capskick) {
n4= if ($2 == on) { jsset capskick ON | echo 6 -a *** Caps Kick is ON }
n5= elseif ($2 == off) { jsset capskick OFF | echo 6 -a *** Caps Kick is OFF }
n6= elseif ($2 == addchan) && ($left($3,1) == $chr(35)) { jsset capchans $jscript(capchans) $3- | echo 6 -a *** Added " $+ $3- $+ " to capskick channel list. }
n7= elseif ($2 == delchan) && ($left($3,1) == $chr(35)) { jsset capchans $remove($jscript(capchans),$3) | echo 6 -a *** Removed " $+ $3 $+ " from capskick channel list. }
n8= elseif ($2 == list) { echo 6 -a *** Caps Kick is $jscript(capskick) | echo 6 -a *** Capskick Channels: $jscript(capchans) | echo 6 -a *** Capskick trigger: $calc(100 * $jscript(maxcpercent)) percent of message CAPed }
n9= elseif ($2 == maxpercent) && ($3 isnum 1-100) { jsset maxcpercent $3 | echo 6 -a *** Maximum capitalized words percentage for caps kick is set at $calc(100 * $jscript(maxcpercent)) }
n10= else { echo 6 -a *** Error: Usage: /jserv capskick < on ! off ! list ! addchan channel(s) ! delchan channel(s) ! maxpercent number (range 1-100) > }
n11= }
n12= elseif ($1 == quick) {
n13= if ($3 == list) echo -a 6 Your Favorite channels are -> $jscript(favchans) <- Hit F2 to join them
n14= elseif $2 == favchans) && ($3 == $null) || ($4 == $null) echo -a 6 -Error- Usage: /jserv quick favchans - <add> <del> - <channel>
n15= elseif ($2 == favchans) && ($3 == add) { jsset favchans $jscript(favchans) $4- | echo 6 -a *** Added " $+ $4- $+ " to your quick-join channels. }
n16= elseif ($2 == favchans) && ($3 == del) { jsset favchans $remove($jscript(favchans),$4) | echo 6 -a *** Removed " $+ $4 $+ " from your quick-join channels. }
n17= }
n18= elseif ($1 == dump) {
n19= if ($2 == all) { csstats | modstats | protstats }
n20= elseif ($2 == misc) { csstats }
n21= elseif ($2 == modes) { modstats }
n22= elseif ($2 == prots) { protstats }
n23= else { echo 6 -a *** Error: Usage: /jserv dump < all ! misc ! modes ! prots > }
n24= }
n25= elseif ($1 == general) {
n26= if ($2 == autoget) {
n27= if ($3 == ON) { jsset autoget ON | echo 6 -a *** Autoget is now ON }
n28= elseif ($3 == OFF) { jsset autoget OFF | echo 6 -a *** Autoget is now OFF }
n29= else { echo 6 -a *** Error: Syntax: /jserv general autoget < on ! off > }
n30= }
n31= elseif ($2 == awaymsg) {
n32= if ($3 != $null) { jsset awaymsg $3- | echo 6 -a *** Away Msg set: $jscript(awaymsg) }
n33= else { echo 6 -a *** Error: Usage: /jserv general awaymsg <away msg (starting with a verb)> }
n34= }
n35= elseif ($2 == mainnick) {
n36= if ($3 && $4 != $null) { jsset mynick $3 | jsset mynickpass $4 | echo 6 -a *** Main Nickname set: $jscript(mynick) w/password: $jscript(mynickpass) }
n37= else { echo 6 -a *** Error: Usage: /jserv general mainnick <nickname> <password> }
n38= }
n39= elseif ($2 == altnick) {
n40= if ($3 && $4 != $null) { jsset mynick2 $3 | jsset mynickpass2 $4 | echo 6 -a *** Altenate Nickname set: $jscript(mynick2) w/password: $jscript(mynickpass2) }
n41= else { echo 6 -a *** Error: Usage: /jserv general altnick <nickname> <password> }
n42= }
n43= elseif ($2 == ustats) {
n44= if ($3 != $null) { set %ustats $3- | echo 6 -a *** Stats have been set to: %ustats }
n45= else { echo 6 -a *** Error: Stats not entered correctly }
n46= }
n47= elseif ($2 == usermodes) {
n48= if ($3 == list) { echo 6 -a *** Your startup usermodes are: $jscript(usermodes) }
n49= elseif ($3 == set) { jsset usermodes $remove($4,+) | echo 6 -a *** Usermodes have been set: $jscript(usermodes) | mode $me $jscript(usermodes) }
n50= elseif ($3 == wipe) { jsset usermodes - | echo 6 -a *** Usermodes have been cleared. }
n51= else { echo 6 -a *** Error: Usage: /jserv usermodes < list ! set usermodes ! wipe > }
n52= }
n53= elseif ($2 == tupdate) {
n54= if ($3 isnum) { jsset tupdate $3 | .timer15 off | .timer15 0 $jscript(tupdate) lusers2 | echo 6 -a *** Titlebar will now update every $jscript(tupdate) seconds. }
n55= else { echo 6 -a *** Error: Titlebar update interval should be a number (in seconds) }
n56= }
n57= else { echo 6 -a *** Error: Usage: /jserv general < autoget ! awaymsg ! mainnick ! usermodes ! tupdate > < parms > }
n58= }
n59= elseif ($1 == messaging) {
n60= if ($2 == autogreet) {
n61= if ($3 == on) { jsset autogreet ON | echo 6 -a *** Autogreet is ON }
n62= elseif ($3 == off) { jsset autogreet OFF | echo 6 -a *** Autogreet is OFF }
n63= elseif ($3 == list) { echo 6 -a *** Autogreet is: $jscript(autogreet) | echo 6 -a *** AutoGreet message is: $read -nl1 agmsg.txt | echo 6 -a *** The following channels are autogreeted: $jscript(agchans) }
n64= elseif ($3 == add) && ($left($4,1) == $chr(35)) { if ($4 !isin $jscript(agchans)) jsset agchans $jscript(agchans) $4 | echo 6 -a *** $4 Added. Current autogreet channel(s): $jscript(agchans) }
n65= elseif ($3 == del) && ($left($4,1) == $chr(35)) { jsset agchans $remove($jscript(agchans),$4) | echo 6 -a *** $4 Removed. Current autogreet channel(s): $jscript(agchans) }
n66= elseif ($3 == set) { write -l1 agmsg.txt $4- | echo 6 -a *** Autogreet Message is set: $read -nl1 agmsg.txt }
n67= else { echo 6 -a *** Error: Usage: /jserv messaging autogreet < on ! off ! list ! set ! add channel ! del channel > }
n68= }
n69= elseif ($2 == clones) {
n70= if ($3 == active) { jsset fswClones echo -a | echo 6 -a *** Possible Clones notice will now be echoed to the active window. }
n71= elseif ($3 == system) { jsset fswClones system | echo 6 -a *** Possible Clones notice will now be directed to the @System window. }
n72= elseif ($3 == status) { jsset fswClones echo -s | echo 6 -a *** Possible Clones notice will now be directed to the Status window. }
n73= elseif ($3 == custom) { if ($left($4,1) == @) jsset fswClones custom $4- | echo 6 -a *** Possible Clones notice will now be directed to the $4 window. }
n74= elseif ($3 == autowho) {
n75= if ($4 == on) { jsset fswAWho ON | echo 6 -a *** Auto /who on "Possible Clones" notice is ON }
n76= elseif ($4 == off) { jsset fswAWho OFF | echo 6 -a *** Auto /who on "Possible Clones" notice is OFF }
n77= else { echo 6 -a *** Error: Usage: /jserv messaging clones autowho < on ! off > }
n78= }
n79= else { echo 6 -a *** Error: Usage: /jserv messaging clones < active ! system ! status ! custom ! autowho on/off > }
n80= }
n81= elseif ($2 == idlewhois) {
n82= if ($3 == ON) { jsset iwhois ON | echo 6 -a *** Idlewhois is now ON. All whois queries will now show idle time. }
n83= elseif ($3 == OFF) { jsset iwhois OFF | echo 6 -a *** Idlewhois is now OFF. Only local whois queries will show idle time. }
n84= else { echo 6 -a *** Error: Usage: /jserv messaging idlewhois <on ! off > }
n85= }
n86= elseif ($2 == globops) {
n87= if ($3 == active) { jsset fswGlobops echo -a | echo 6 -a *** Globops will now be directed to the active window. }
n88= elseif ($3 == status) { jsset fswGlobops echo -s | echo 6 -a *** Globops will now be directed to the status window. }
n89= elseif ($3 == system) { jsset fswGlobops system | echo 6 -a *** Globops will now be directed to the @System window. }
n90= elseif ($3 == globops) { jsset fswGlobops wGlobOps | echo 6 -a *** Globops will now be directed to the @Globops window. }
n91= elseif ($3 == custom) { if ($left($4,1) == @) { jsset fswGlobops custom $4- | echo 6 -a *** Globops will now be directed to the $4 window. }
n92= else { echo 6 -a *** Error: Window names must start with a @ }
n93= }
n94= else { echo 6 -a *** Error: Usage: /jserv messaging globops < active ! status ! system ! custom > }
n95= }
n96= elseif ($2 == locops) {
n97= if ($3 == active) { jsset fswLocops echo -a | echo 6 -a *** Locops will now be directed to the active window. }
n98= elseif ($3 == status) { jsset fswLocops echo -s | echo 6 -a *** Locops will now be directed to the status window. }
n99= elseif ($3 == system) { jsset fswLocops system | echo 6 -a *** Locops will now be directed to the @System window. }
n100= elseif ($3 == locops) { jsset fswLocops wLocOps | echo 6 -a *** Locops will now be directed to the @Locops window. }
n101= elseif ($3 == custom) { if ($left($4,1) == @) { jsset fswLocops custom $4- | echo 6 -a *** Locops will now be directed to the $4 window. }
n102= else { echo 6 -a *** Error: Window names must start with a @ }
n103= }
n104= else { echo 6 -a *** Error: Usage: /fserv messaging locops < active ! status ! system ! locops ! custom > }
n105= }
n106= elseif ($2 == chatops) {
n107= if ($3 == active) { jsset fswChatops echo -a | echo 6 -a *** ChatOps will now be directed to the active window. }
n108= elseif ($3 == status) { jsset fswChatops echo -s | echo 6 -a *** ChatOps will now be directed to the status window. }
n109= elseif ($3 == system) { jsset fswChatops system | echo 6 -a *** Chatops will now be directed to the @System window. }
n110= elseif ($3 == chatops) { jsset fswChatops wChatOps | echo 6 -a *** ChatOps will now be directed to the @ChatOps window. }
n111= elseif ($3 == custom) { if ($left($4,1) == @) { jsset fswChatOps custom $4- | echo 6 -a *** ChatOps will now be directed to the $4 window. }
n112= else { echo 6 -a *** Error: Window names must start with a @ }
n113= }
n114= else { echo 6 -a *** Error: Usage: /fserv messaging chatops < active ! status ! system ! chatops ! custom > }
n115= }
n116= elseif ($2 == services) {
n117= if ($3 == active) { jsset fswServices echo 5 -a | echo 6 -a *** Service notices will now be directed to the active window. }
n118= elseif ($3 == status) { jsset fswServices echo 5 -s | echo 6 -a *** Service notices will now be directed to the status window. }
n119= elseif ($3 == system) { jsset fswServices system | echo 6 -a *** Service notices will now be directed to the @System window. }
n120= elseif ($3 == custom) { if ($left($4,1) == @) { jsset fswServices custom $4- | echo 6 -a *** Services notices will now be directed to the $4 window. }
n121= else { echo 6 -a *** Error: Window names must start with a @ }
n122= }
n123= else { echo 6 -a *** Error: Usage: /jserv messaging services < active ! status ! system ! custom > }
n124= }
n125= else { echo 6 -a *** Error: Usage: /jserv messaging < autogreet ! clones ! idlewhois ! locops ! services > < parms > }
n126= }
n127= elseif ($1 == prots) {
n128= if ($2 == ban) {
n129= if ($3 == on) { .enable #banprot | jsset banprot ON | echo 6 -a *** Ban Prot is ON }
n130= elseif ($3 == off) { .disable #banprot | jsset banprot OFF | echo 6 *** Ban Prot is OFF }
n131= else { echo 6 -a *** Error: Usage: /jserv prots ban < on ! off > }
n132= }
n133= elseif ($2 == bantime) {
n134= if ($3 isnum) { jsset bantime $3 | echo 6 -a *** Ban time set for $3 seconds. }
n135= else { echo 6 -a *** Error: Bantime should be numeric }
n136= }
n137= elseif ($2 == clone) {
n138= if ($3 == on) { jsset cloneprot ON | echo 6 -a *** Clone Prot is ON }
n139= elseif ($3 == off) { jsset cloneprot OFF | echo 6 -a *** Clone Prot is OFF }
n140= elseif ($3 == set) {
n141= if ($4 isnum 1-10) { jsset maxclones $int($4) | echo 6 -a *** Clone Prot set: $jscript(maxclones) clones in a channel triggers ignore }
n142= else { echo 6 -a *** Error: The max number of clones per channel should be between 1 and 10 }
n143= }
n144= elseif ($3 == nocheck) {
n145= if ($4 == list) { echo 6 -a *** The following Idents/IPs are ignored: $jscript(nocheck) }
n146= elseif ($4 == add) { jsset nocheck $jscript(nocheck) $5- | echo 6 -a *** Added. Idents/IPs ignored: $jscript(nocheck) }
n147= elseif ($4 == del) { jsset nocheck $remove($jscript(nocheck),$5-) | echo 6 -a *** Deleted. Idents/IPs ignored: $jscript(nocheck) }
n148= else { echo 6 -a *** Error: Usage: /jserv prots clone nocheck < list ! add ident(s) or ip(s) ! del ident or ip > }
n149= }
n150= else { echo 6 -a *** Error: Usage: /jserv prots clone < on ! off ! set number (max clones per channel) ! nocheck > }
n151= }
n152= elseif ($2 == ctcpflood) {
n153= if ($3 == on) { jsset cfprot ON | jsset crprot ON | echo 6 -a *** CTCP Flood Prot is ON | .enable #crprot | .enable #cfprot }
n154= elseif ($3 == off) { jsset cfprot OFF | jsset crprot ON | .disable #crprot | .disable #crprot | echo 6 -a *** CTCP Flood Prot is OFF }
n155= elseif ($3 == set) {
n156= if ($4 isnum 1-10) { jsset cflines $int($4) | echo 6 -a *** CTCP Flood Prot set: $jscript(cflines) ctcps per second triggers ignore }
n157= else { echo 6 -a *** Error: The max number of CTCPs per second should be between 1 and 10 }
n158= }
n159= else { echo 6 -a *** Error: Usage: /jserv prots ctcpflood < on ! off ! set number (max CTCPs per second) > }
n160= }
n161= elseif ($2 == ignoretime) {
n162= if ($3 isnum 1-60) { jsset ignoretime $3 | echo 6 -a *** Ignore time set for $3 seconds. }
n163= else { echo 6 -a *** Error: Ignoretime should be between 1 and 60 seconds }
n164= }
n165= elseif ($2 == textflood) {
n166= if ($3 == on) { jsset tfprot ON | echo 6 -a *** Text Flood Prot is ON }
n167= elseif ($3 == off) { jsset tfprot OFF | echo 6 -a *** Text Flood Prot is OFF }
n168= elseif ($3 == set) {
n169= if ($4 isnum 1-10) { jsset tflines $int($4) | echo 6 -a *** Text Flood Prot set: $jscript(tflines) lines per second triggers ignore }
n170= else { echo 6 -a *** Error: The max number of lines per second should be between 1 and 10 }
n171= }
n172= else { echo 6 -a *** Error: Usage: /jserv prots textflood < on ! off ! set number (max lines per second) > }
n173= }
n174= else { echo 6 -a *** Error: Usage: /jserv prots < bantime ! ban ! clone ! ctcpflood ! nickflood ! textflood ! ignoretime > < parameters > }
n175= }
n176= elseif ($1 == sounds) {
n177= if ($2 == join) {
n178= if ($3 == on) { jsset joinwav ON | echo 6 -a *** Join Sound is ON }
n179= elseif ($3 == off) { jsset joinwav OFF | echo 6 -a *** Join Sound is OFF }
n180= else { echo 6 -a *** Error: Usage: /jserv sounds join < on ! off > }
n181= }
n182= elseif ($2 == msg) {
n183= if ($3 == on) {
n184= if ($jscript(msgwav) == ON) { echo 6 *** Msg Sound is ON }
n185= else { .rename $mircdirsounds\nomsg.wav $mircdirsounds\msg.wav | jsset msgwav ON | echo 6 *** Msg Sound is ON }
n186= }
n187= elseif ($3 == off) {
n188= if ($jscript(msgwav) == OFF) { echo 6 *** Msg Sound is OFF }
n189= else { .rename $mircdirsounds\msg.wav $mircdirsounds\nomsg.wav | jsset msgwav OFF | echo 6 *** Msg Sound is OFF }
n190= }
n191= else { echo 6 -a *** Error: Usage: /jserv sounds msg < on ! off > }
n192= }
n193= else { echo 6 -a *** Error: Usage: /jserv sounds < join ! msg > < on ! off > }
n194= }
n195= elseif ($1 == theme) {
n196= if ($2 == off) {
n197= jsset refresh refresh2 | jsset bgcheck bgcheck2
n198= jsset theme OFF | refresh2 | echo 6 -a *** Themes are OFF
n199= remini mirc.ini background
n200= }
n201= elseif ($2 == clouds) {
n202= if ($jscript(theme) == clouds) { echo 6 -a *** Clouds theme is already loaded. }
n203= else {
n204= jsset refresh refresh | jsset bgcheck bgcheck
n205= .copy -o $mircdirthemes\Clouds-TB.jpg $mircdirtb.jpg
n206= .copy -o $mircdirthemes\Clouds-BG.jpg $mircdirbg.jpg
n207= jsset theme Clouds | refresh2
n208= echo 6 -a *** Clouds theme is now active.
n209= }
n210= }
n211= elseif ($2 == sky) {
n212= if ($jscript(theme) == sky) { echo 6 -a *** Sky theme is already loaded. }
n213= else {
n214= jsset refresh refresh | jsset bgcheck bgcheck
n215= .copy -o $mircdirthemes\Sky-TB.jpg $mircdirtb.jpg
n216= .copy -o $mircdirthemes\Sky-BG.jpg $mircdirbg.jpg
n217= jsset theme Sky | refresh2
n218= echo 6 -a *** Sky theme is now active.
n219= }
n220= }
n221= elseif ($2 == sunburst) {
n222= if ($jscript(theme) == sunburst) { echo 6 -a *** Sunburst theme is already loaded. }
n223= else {
n224= jsset refresh refresh | jsset bgcheck bgcheck
n225= .copy -o $mircdirthemes\Sunburst-TB.jpg $mircdirtb.jpg
n226= .copy -o $mircdirthemes\Sunburst-BG.jpg $mircdirbg.jpg
n227= jsset theme Sunburst | refresh2
n228= echo 6 -a *** Sunburst theme is now active.
n229= }
n230= }
n231= else { echo 6 -a Error: Usage: /jserv theme < off ! clouds ! sunburst ! sky > }
n232= }
n233= elseif ($1 == wordkick) {
n234= if ($2 == on) { jsset wordkick ON | echo 6 -a *** Wordkick is now ON. }
n235= elseif ($2 == off) { jsset wordkick OFF | echo 6 -a *** Wordkick is now OFF. }
n236= elseif ($2 == list) { echo 6 -a *** Wordkick is $jscript(wordkick) | echo 6 -a *** Current kick word(s): $jscript(kickwords) | echo 6 -a *** Current kick channel(s): $jscript(kickchans) }
n237= elseif ($2 == kickmsg) { jsset wkickmsg $3- | echo 6 -a *** Wordkick KickMsg is: $jscript(wkickmsg) }
n238= elseif ($2 == addword) { jsset kickwords $jscript(kickwords) $3- | echo 6 -a *** Added " $+ $3- $+ " to wordkick. }
n239= elseif ($2 == delword) { jsset kickwords $remove($jscript(kickwords),$3) | echo 6 -a *** Removed " $+ $3 $+ " from wordkick.. }
n240= elseif ($2 == addchan) && ($left($3,1) == $chr(35)) { jsset kickchans $jscript(kickchans) $3- | echo 6 -a *** Added " $+ $3- $+ " to wordkick channel list. }
n241= elseif ($2 == delchan) && ($left($3,1) == $chr(35)) { jsset kickchans $remove( $jscript(kickchans) ,$3) | echo 6 -a *** Removed " $+ $3 $+ " from wordkick channel list. }
n242= else { echo 6 -a *** Error: Usage: /jserv wordkick < on ! off ! list ! kickmsg ! addword word ! delword word ! addchan channel(s) ! delchan channel(s) > }
n243= }
n244= else { echo 6 -a *** Error: Usage: /jserv capskick ! dump ! general ! messaging ! prots ! sounds ! wordkick > < parameters > }
n245=}
n246=jsset writeini jscript.ini settings $$1 $$2-
n247=jsrem remini jscript.ini settings $$1
n248=jscript return $readini jscript.ini settings $1