################################################################# ### (xw)/bx Utilz v3 by AtomiC (`iCe`) ### ### ### ### Please email all bugs and suggestions to pratomic@jps.net ### ################################################################# ### Greetz to: ### ### panasync - For an elite irc client ### ### #BitchX efnet/undernet ### ### All the ppl that helped me ### ### All the ppl i op channels with ### ### fibr0ptix - For suggestions ### ################################################################# ################################################################# ### To configure, type /xwconfig after loading ### ################################################################# ### What's New ### ### 2.0.0 : ### -Made script not require crackrock or any other script ### -Fixed a few bugs and spelling errors ### 2.0.1 : ### -Fixed part of the /xwdoall alias ### 2.0.2 : ### -Added feature to auto login and join channels on connection ### to and Undernet Server ### -Added an alias of /xwsave ### 2.0.3 : ### -Fixed /xban & /wban bug ### -Added /xcycle & /wcycle ### -Added /xautoop & /wautoop ### 2.0.4 : ### -Changed the sequence to login and then join your channels ### -Added a /wk command to kill a window and a few other window commands ### -Fixed bug in creating windows ### -Added feature to auto close all windows on disconnection to an ### *.undernet.org server *NOTE: THIS IS IN TESTING* ### 2.0.5 : ### -Minor scripting improvments ### -Added Auto-Reop on deop when someone deops you in a channel that you ### are on x/w ### -Changed the version reply ### 2.0.6/7 : ### -Modified the /wc command which creates a new window.. should notice a ### speed change on startup ### -Added /xwinfo for info on the script ### -Added random /xwsay actions ### -Added request of big-dcc@efnet for support of channel keys ### -Got rid of that anoying ùíù SWAP: Window 10 is not hidden! and the ### ùíù SWAP: No such window: 2 ### -Took out previous window closing feature on disconnect due to some ### problems with it ### 3.0 : ### -Fixed a small bug with /xwdoall ### -Cosmetic improvements ### -Added /xwping ### -Made the script put out a warning if you are using an old bx version ### This is probably the last version.. seeing as how I don't have the ### time to update it and make it more elite. ################################################################# ################################################################# ### ----------------------------------------------------------### ### Start of Script ### ### ----------------------------------------------------------### ################################################################# if (![$bitchx()]) { echo Get BitchX first, duh!#@ echo Go to ftp.bitchx.com or efnet #BitchX echo Auto-Quiting in 5 secs.. sleep 5 quit I dont seem to be running BitchX.. as this script requires.. (xw) } if ([$V]<[19980105]) { echo $G Your BitchX is older than [BitchX74p2] echo $G Therefore, some commands may not work echo $G It is recommended that your pick up the newest BitchX echo $G At: ftp.bitchx.com/pub/BitchX/ echo $G Thanks, AtomiC } # All the following are things i've taken from other scripts # Bits and peices from NZ; Crackrock; osmosis and sum of it just # modified stuff/ideas if (![$crack.ver]) { ^assign BLNK  ^assign CL  ^assign BLU  ^assign MAG  ^assign CYN  ^assign WHT  ^assign RED  ^assign GRN  ^assign YEL  ^assign BBLU  ^assign BBLK  ^assign BRED  ^assign BGRN  ^assign BYEL  ^assign BBLU  ^assign BMAG  ^assign BCYN  ^assign BWHT  ^assign HBLK \[1\;30m ^assign HGRN \[1\;32m ^assign HBLU \[1\;34m ^assign HMAG \[1\;35m ^assign HCYN \[1\;36m ^assign HWHT \[1\;37m ^assign HRED \[1\;31m ^assign HGRN \[1\;32m ^assign HYEL \[1\;33m alias 1 window swap 1;setstatus alias 2 window swap 2;setstatus alias 3 window swap 3;setstatus alias 4 window swap 4;setstatus alias 5 window swap 5;setstatus alias 6 window swap 6;setstatus alias 7 window swap 7;setstatus alias 8 window swap 8;setstatus alias 9 window swap 9;setstatus alias 10 window swap 10;setstatus alias wn window next;setstatus alias wk window kill;setstatus alias wj if ([$0]) {wc;wn;join $0-} alias wl window list alias wn window next;setstatus alias wp window previous;setstatus alias wc { ^window new hide ^reset }} on -window_create * window double on on ^window "? % SWAP: No such window: %" # on ^window "? % SWAP: Window % is not hidden!" # if (xw.v) {echo Why did you have to go and load this script twice? //quit I'm a h0re who had to go and load $xw.v by $xw.author twice} eval ^assign xw.logo ${hyel}[${hred}(xw)${hyel}]${cl} @ xw.ver = [3.0] @ xw.v = [(xw)$xw.ver] eval set exec_protection off eval ^assign xw.nc.logo [(xw)] eval echo $xw.logo ${hred}Loading...${cl} eval set format_version $format_version + $xw.v @ xw.author = [AtomiC] if ([$fexist(~/.BitchX/.xw.sav)]!=[1]) { echo $xw.logo ${hred}Configuration file not found...${cl} echo $xw.logo ${hred}Use /xwconfig to configure${cl} }{ ^load ~/.BitchX/.xw.sav ^echo $xw.logo ${hred}loaded ~/.BitchX/.xw.sav${cl} } if ([$crack.ver]) { eval $setitem(addon $numitems(addon) configure X-W/bx Utilz) eval $setitem(addoncfg $numitems(addoncfg) xwconfig) } ^assign x.host x@channels.undernet.org ^assign w.host w@channels2.undernet.org ^alias xwinfo { echo ${hyel}ÖÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ${cl}$xw.logo${hyel}ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ·${cl} echo ${hyel}º ${hred}Greetz to:${hyel} º${cl} echo ${hyel}º ${hred}panasync - For an elite irc client${hyel} º${cl} echo ${hyel}º ${hred}#BitchX efnet/undernet${hyel} º${cl} echo ${hyel}º ${hred}All the ppl that helped me${hyel} º${cl} echo ${hyel}º ${hred}All the ppl i op channels with${hyel} º${cl} echo ${hyel}º ${hred}fibroptix/rexec9/awpc0de - For suggestions${hyel} º${cl} echo ${hyel}º ${hred}And finally.. anyone else i missed :)${hyel} º${cl} echo ${hyel}ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĽ${cl} } ^alias xwhelp { echo $xw.logo ${hred}---====Commands Available====---${cl} echo $xw.logo ${hred}/xwconfig - Configures all the channels and more${cl} echo $xw.logo ${hred}/xwdoall - Join all channels and set up the windows${cl} echo $xw.logo ${hred}/xwlogin - Login to x/w on all channels${cl} echo $xw.logo ${hred}/xwsay - Do a random action showing the script off${cl} echo $xw.logo ${hred}/xwinfo - Shows info on the script and greetz${cl} echo $xw.logo ${hred}/xw500 - List all available x/w commands for level 500${cl} echo $xw.logo ${hred}/xw450 - List all available x/w commands for level 450${cl} echo $xw.logo ${hred}/xw400 - List all available x/w commands for level 400${cl} echo $xw.logo ${hred}/xw100 - List all available x/w commands for level 100${cl} echo $xw.logo ${hred}/xw75 - List all available x/w commands for level 75${cl} echo $xw.logo ${hred}/xw50 - List all available x/w commands for level 50${cl} echo $xw.logo ${hred}/xw1 - List all available x/w commands for level 1${cl} echo $xw.logo ${hred}/xw0 - List all available x/w commands for level 0${cl} echo $xw.logo } # Random /xwsay 's @ xwran.say.0 = [iz tew seckzi fer hiz $xw.v by $xw.author ] @ xwran.say.1 = [iz mackin' da ladies wif $xw.v by $xw.author ] @ xwran.say.2 = [iz lettin ppl leggo his eggo wif $xw.v by $xw.author ] @ xwran.say.3 = [iz creatin werld peece wif $xw.v by $xw.author ] @ xwran.say.4 = [iz jackin' off wif $xw.v by $xw.author ] @ xwran.say.5 = [iz gettin excessive tongue wif $xw.v by $xw.author ] @ xwran.say.6 = [iz gettin sex0r'd by X/W wif $xw.v by $xw.author ] @ xwran.say.7 = [iz ramin' da chiqs wif $xw.v by $xw.author ] @ xwran.say.8 = [iz gettin' horny wif $xw.v by $xw.author ] @ xwran.say.9 = [iz pimpin' all da bitchez wif $xw.v by $xw.author ] @ xwran.say.10 = [iz sippin' on gin and jewce wif $xw.v by $xw.author ] @ xwran.say.11 = [iz fuckin' around wif $xw.v by $xw.author ] ^alias xwsay { if ([$C]!=[]) { me $xwran.say[$rand(12)] } if ([$C]==[]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xwlogin { echo $xw.logo ${hred}Logging in...${cl} if ([$dchan1]==[xchan]) { msg $x.host login $chan1 $pass1 } if ([$dchan1]==[wchan]) { msg $w.host login $chan1 $pass1 } if ([$dchan2]==[xchan]) { msg $x.host login $chan2 $pass2 } if ([$dchan2]==[wchan]) { msg $w.host login $chan2 $pass2 } if ([$dchan3]==[xchan]) { msg $x.host login $chan3 $pass3 } if ([$dchan3]==[wchan]) { msg $w.host login $chan3 $pass3 } if ([$dchan4]==[xchan]) { msg $x.host login $chan4 $pass4 } if ([$dchan4]==[wchan]) { msg $w.host login $chan4 $pass4 } if ([$dchan5]==[xchan]) { msg $x.host login $chan5 $pass5 } if ([$dchan5]==[wchan]) { msg $w.host login $chan5 $pass5 } if ([$dchan6]==[xchan]) { msg $x.host login $chan6 $pass6 } if ([$dchan6]==[wchan]) { msg $w.host login $chan6 $pass6 } if ([$dchan7]==[xchan]) { msg $x.host login $chan7 $pass7 } if ([$dchan7]==[wchan]) { msg $w.host login $chan7 $pass7 } if ([$dchan8]==[xchan]) { msg $x.host login $chan8 $pass8 } if ([$dchan8]==[wchan]) { msg $w.host login $chan8 $pass8 } if ([$dchan9]==[xchan]) { msg $x.host login $chan9 $pass9 } if ([$dchan9]==[wchan]) { msg $w.host login $chan9 $pass9 } if ([$dchan10]==[xchan]) { msg $x.host login $chan10 $pass10 } if ([$dchan10]==[wchan]) { msg $w.host login $chan10 $pass10 } } ^alias xwdoall { echo $xw.logo ${hred}Setting up windows and logging into X/W...${cl} xwlogin 1 if ([$chan1]!=[]) { join $chan1 $kchan1 } if ([$chan2]!=[]) { wj $chan2 $kchan2 } if ([$chan3]!=[]) { wj $chan3 $kchan3 } if ([$chan4]!=[]) { wj $chan4 $kchan4 } if ([$chan5]!=[]) { wj $chan5 $kchan5 } if ([$chan6]!=[]) { wj $chan6 $kchan6 } if ([$chan7]!=[]) { wj $chan7 $kchan7 } if ([$chan8]!=[]) { wj $chan8 $kchan8 } if ([$chan9]!=[]) { wj $chan9 $kchan9 } if ([$chan10]!=[]) { wj $chan10 $kchan10 } if ([$nchan1]!=[]) { wj $nchan1 $nkchan1 } if ([$nchan2]!=[]) { wj $nchan2 $nkchan2 } if ([$nchan3]!=[]) { wj $nchan3 $nkchan3 } if ([$nchan4]!=[]) { wj $nchan4 $nkchan4 } if ([$nchan5]!=[]) { wj $nchan5 $nkchan5 } if ([$nchan6]!=[]) { wj $nchan6 $nkchan6 } if ([$nchan7]!=[]) { wj $nchan7 $nkchan7 } if ([$nchan8]!=[]) { wj $nchan8 $nkchan8 } if ([$nchan9]!=[]) { wj $nchan9 $nkchan9 } if ([$nchan10]!=[]) { wj $nchan10 $nkchan10 } 1 } ###Start of xw-commands ^alias xw500 { echo $xw.logo ${hred}---====Commands Available====---${cl} echo $xw.logo ${hred}All commands make the changes to the current channel${cl} echo $xw.logo ${red}/xsetv ${cl} echo $xw.logo ${red}/wsetv ${cl} echo $xw.logo ${red}/xwsethelp${cl} echo $xw.logo ${hred}---==== ====---${cl} } #Level 500 commands ^alias xsetv { if ([$C]!=[0]) { if ([$0-]!=[]) { msg x set $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /xsetv ${cl} echo $xw.logo ${red}For more information type /xwsethelp${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wsetv { if ([$C]!=[0]) { if ([$0-]!=[]) { msg w set $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /wsetv ${cl} echo $xw.logo ${red}For more information type /xwsethelp${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xwsethelp { echo $xw.logo ${hred}---====X-W Set Help For Level 500====---${cl} echo $xw.logo ${hred}All of this refers to the /xsetv and /wsetv command${cl} echo $xw.logo ${red}MassDeopPro - # of deops allowed in 15 secs${cl} echo $xw.logo ${red}NickFloodPro - $ of nick changes in 15 secs${cl} echo $xw.logo ${red}FloodPro - # of Kicks, Topic changes in 15 secs${cl} echo $xw.logo ${red}UserFlags - Sets whether autoop is on (1) or off (0) by default${cl} echo $xw.logo ${red}NoOp - Sets the channel to NoOp mode, leaving only X/W opped${cl} echo $xw.logo ${red}AlwaysOp - Sets it so that X/W will always op themselves${cl} echo $xw.logo ${red}OpOnly - Sets it so that op is the only chanop command${cl} echo $xw.logo ${red}StrictOp - Sets strictop on or off${cl} echo $xw.logo ${red}Lang - Sets the default language, choices of: en, nl, fr, ge${cl} echo $xw.logo ${red}Description - Sets the description of the channel and default topic${cl} echo $xw.logo ${red}URL - Sets the channel's URL${cl} echo $xw.logo ${red}AutoTopic - Makes X/W autoset the topic every 30 mins${cl} } ^alias xw450 { echo $xw.logo ${hred}---====Commands Available====---${cl} echo $xw.logo ${hred}All commands make the changes to the current channel${cl} echo $xw.logo ${red}/xaddchan${cl} echo $xw.logo ${red}/waddchan${cl} echo $xw.logo ${red}/xjoin${cl} echo $xw.logo ${red}/wjoin${cl} echo $xw.logo ${red}/xpart${cl} echo $xw.logo ${red}/xremchan${cl} echo $xw.logo ${red}/wremchan${cl} echo $xw.logo ${red}/xcycle${cl} echo $xw.logo ${red}/wcycle${cl} echo $xw.logo ${hred}---==== ====---${cl} } #Level 450 commands ^alias xaddchan { if ([$C]!=[0]) { msg x addchan $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias waddchan { if ([$C]!=[0]) { msg w addchan $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xjoin { if ([$C]!=[0]) { msg x join $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wjoin { if ([$C]!=[0]) { msg w join $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xpart { if ([$C]!=[0]) { msg x part $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wpart { if ([$C]!=[0]) { msg w part $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xremchan { if ([$C]!=[0]) { msg x remchan $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wremchan { if ([$C]!=[0]) { msg w remchan $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xcycle { if ([$C]!=[0]) { msg x part $C msg x join $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xcycle { if ([$C]!=[0]) { msg x part $C msg x join $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xw400 { echo $xw.logo ${hred}---====Commands Available====---${cl} echo $xw.logo ${hred}All commands make the changes to the current channel${cl} echo $xw.logo ${red}/xadduser [user@host] [password]${cl} echo $xw.logo ${red}/wadduser [user@host] [password]${cl} echo $xw.logo ${red}/xclearmode${cl} echo $xw.logo ${red}/wclearmode${cl} echo $xw.logo ${red}/xmodinfo ${cl} echo $xw.logo ${red}/wmodinfo ${cl} echo $xw.logo ${red}/xwmodinfohelp echo $xw.logo ${red}/xremuser ${cl} echo $xw.logo ${red}/wremuser ${cl} echo $xw.logo ${red}/xstatus${cl} echo $xw.logo ${red}/wstatus${cl} echo $xw.logo ${red}/xautoop ${cl} echo $xw.logo ${red}/wautoop ${cl} echo $xw.logo ${hred}---==== ====---${cl} } #Level 400 commands ^alias xadduser { if ([$C]!=[0]) { if ([$0]!=[]) { msg x adduser $C $0- } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /xadduser [user@host] [password]${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wadduser { if ([$C]!=[0]) { if ([$0]!=[]) { msg w adduser $C $0- } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /wadduser [user@host] [password]${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xclearmode { if ([$C]!=[0]) { msg x clearmode $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wclearmode { if ([$C]!=[0]) { msg w clearmode $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xmodinfo { if ([$C]!=[0]) { if ([$0-]!=[]) { msg x modinfo $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /xmodinfo ${cl} echo $xw.logo ${red}For more information type /xwmodinfohelp${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wmodinfo { if ([$C]!=[0]) { if ([$0-]!=[]) { msg w modinfo $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /wmodinfo ${cl} echo $xw.logo ${red}For more information type /xwmodinfohelp${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xwmodinfohelp { echo $xw.logo ${hred}---====X-W ModInfo Help For Level 400+====---${cl} echo $xw.logo ${hred}All of this refers to the /xmodinfo and /wmodinfo commands${cl} echo $xw.logo ${red}Access - Change a users access level${cl} echo $xw.logo ${red}AutoOp - Change whether a user is autooped or not (ON or OFF)${cl} echo $xw.logo ${red}Match - Change a users user@host${cl} echo $xw.logo ${red}RemPass - Remove a users password on X/W${cl} } ^alias xremuser { if ([$C]!=[0]) { if ([$0]!=[]) { msg x remuser $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /xremuser ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wremuser { if ([$C]!=[0]) { if ([$0]!=[]) { msg w remuser $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /wremuser ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xstatus { if ([$C]!=[0]) { msg x status $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wstatus { if ([$C]!=[0]) { msg w status $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xautoop { if ([$C]!=[0]) { if ([$0]!=[]) { msg X MODINFO $C AUTOOP $0 ON } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /xautoop ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wautoop { if ([$C]!=[0]) { if ([$0]!=[]) { msg W MODINFO $C AUTOOP $0 ON } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /wautoop ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xw100 { echo $xw.logo ${hred}---====Commands Available====---${cl} echo $xw.logo ${hred}All commands make the changes to the current channel${cl} echo $xw.logo ${red}/xdeop ${cl} echo $xw.logo ${red}/wdeop ${cl} echo $xw.logo ${red}/xinvite ${cl} echo $xw.logo ${red}/winvite ${cl} echo $xw.logo ${red}/xop ${cl} echo $xw.logo ${red}/wop ${cl} echo $xw.logo ${red}/xsuspend s,m,h or d${cl} echo $xw.logo ${red}/wsuspend s,m,h or d${cl} echo $xw.logo ${red}/xunsuspend ${cl} echo $xw.logo ${red}/wunsuspend ${cl} echo $xw.logo ${hred}---==== ====---${cl} } #Level 100 commands ^alias xdeop { if ([$C]!=[0]) { if ([$0-]!=[]) { msg x deop $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /xdeop ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wdeop { if ([$C]!=[0]) { if ([$0-]!=[]) { msg w deop $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /wdeop ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xinvite { if ([$C]!=[0]) { if ([$0]!=[]) { msg x invite $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /xinvite ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias winvite { if ([$C]!=[0]) { if ([$0]!=[]) { msg w invite $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /winvite ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xop { if ([$C]!=[0]) { if ([$0-]!=[]) { msg x op $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /xop ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wop { if ([$C]!=[0]) { if ([$0-]!=[]) { msg w op $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /wop ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xsuspend { if ([$C]!=[0]) { if ([$0]!=[]) { msg x suspend $C $0 $1 $2 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /xsuspend s,m,h or d${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wsuspend { if ([$C]!=[0]) { if ([$0]!=[]) { msg w suspend $C $0 $1 $2 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /wsuspend s,m,h or d${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xunsuspend { if ([$C]!=[0]) { if ([$0]!=[]) { msg x unsuspend $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /xunsuspend ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wunsuspend { if ([$C]!=[0]) { if ([$0]!=[]) { msg w unsuspend $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /wunsuspend ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xw75 { echo $xw.logo ${hred}---====Commands Available====---${cl} echo $xw.logo ${hred}All commands make the changes to the current channel${cl} echo $xw.logo ${red}/xban [duration in hours] [level] [reason]${cl} echo $xw.logo ${red}/wban [duration in hours] [level] [reason]${cl} echo $xw.logo ${red}/xunban ${cl} echo $xw.logo ${red}/wunban ${cl} echo $xw.logo ${hred}---==== ====---${cl} } #Level 75 commands ^alias xban { if ([$C]!=[0]) { if ([$0-]!=[]) { msg x ban $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /xban [duration in hours] [level] [reason]${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wban { if ([$C]!=[0]) { if ([$0-]!=[]) { msg w ban $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /wban [duration in hours] [level] [reason]${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xunban { if ([$C]!=[0]) { if ([$0]!=[]) { msg x unban $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /xunban ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wunban { if ([$C]!=[0]) { if ([$0]!=[]) { msg w unban $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /wunban ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xw50 { echo $xw.logo ${hred}---====Commands Available====---${cl} echo $xw.logo ${hred}All commands make the changes to the current channel${cl} echo $xw.logo ${red}/xkick [reason]${cl} echo $xw.logo ${red}/wkick [reason]${cl} echo $xw.logo ${red}/xtopic ${cl} echo $xw.logo ${red}/wtopic ${cl} echo $xw.logo ${hred}---==== ====---${cl} } #Level 50 commands ^alias xkick { if ([$C]!=[0]) { if ([$0-]!=[]) { msg x kick $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /xkick ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wkick { if ([$C]!=[0]) { if ([$0-]!=[]) { msg w kick $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /wkick ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xtopic { if ([$C]!=[0]) { if ([$0-]!=[]) { msg x topic $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /xtopic ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wtopic { if ([$C]!=[0]) { if ([$0-]!=[]) { msg w topic $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /wtopic ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xw1 { echo $xw.logo ${hred}---====Commands Available====---${cl} echo $xw.logo ${hred}All commands make the changes to the current channel${cl} echo $xw.logo ${red}/xstatus${cl} echo $xw.logo ${red}/wstatus${cl} echo $xw.logo ${hred}---==== ====---${cl} } #Level 1 commands #Already done from above ^alias xw0 { echo $xw.logo ${hred}---====Commands Available====---${cl} echo $xw.logo ${hred}All commands make the changes to the current channel${cl} echo $xw.logo ${red}/xaccess [options]${cl} echo $xw.logo ${red}/waccess [options]${cl} echo $xw.logo ${red}/xbanlist${cl} echo $xw.logo ${red}/wbanlist${cl} echo $xw.logo ${red}/xchaninfo${cl} echo $xw.logo ${red}/wchaninfo${cl} echo $xw.logo ${red}/xdeauth${cl} echo $xw.logo ${red}/wdeauth${cl} echo $xw.logo ${red}/xhelp [command]${cl} echo $xw.logo ${red}/whelp [command]${cl} echo $xw.logo ${red}/xlbanlist ${cl} echo $xw.logo ${red}/wlbanlist ${cl} echo $xw.logo ${red}/xlogin ${cl} echo $xw.logo ${red}/wlogin ${cl} echo $xw.logo ${red}/xmap${cl} echo $xw.logo ${red}/wmap${cl} echo $xw.logo ${red}/xmotd${cl} echo $xw.logo ${red}/wmotd${cl} echo $xw.logo ${red}/xnewpass ${cl} echo $xw.logo ${red}/wnewpass ${cl} echo $xw.logo ${red}/xshowcommands${cl} echo $xw.logo ${red}/wshowcommands${cl} echo $xw.logo ${red}/xshowignore${cl} echo $xw.logo ${red}/wshowignore${cl} echo $xw.logo ${red}/xverify ${cl} echo $xw.logo ${red}/wverify ${cl} echo $xw.logo ${red}/xping${cl} echo $xw.logo ${red}/wping${cl} echo $xw.logo ${red}/xwping${cl} echo $xw.logo ${hred}---==== ====---${cl} } #Level 0 commands ^alias xaccess { if ([$C]!=[0]) { if ([$0-]!=[]) { msg x access $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /xaccess [options]${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias waccess { if ([$C]!=[0]) { if ([$0-]!=[]) { msg w access $C $0- } if ([$0-]==[]) { echo $xw.logo ${red}Correct syntax is /waccess [options]${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xbanlist { if ([$C]!=[0]) { msg x banlist $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wbanlist { if ([$C]!=[0]) { msg w banlist $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xchaninfo { if ([$C]!=[0]) { msg x chaninfo $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wchaninfo { if ([$C]!=[0]) { msg w chaninfo $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xdeauth { if ([$C]!=[0]) { msg x deauth $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wdeauth { if ([$C]!=[0]) { msg w deauth $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xhelp msg x help ^alias whelp msg w help ^alias xlbanlist { if ([$C]!=[0]) { if ([$0]!=[]) { msg x lbanlist $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /xlbanlist ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wlbanlist { if ([$C]!=[0]) { if ([$0]!=[]) { msg w lbanlist $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /wlbanlist ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xlogin { if ([$C]!=[0]) { if ([$0]!=[]) { msg $x.host login $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /xlogin ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wlogin { if ([$C]!=[0]) { if ([$0]!=[]) { msg $w.host login $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /wlogin ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xmap msg x map ^alias wmap msg w map ^alias xmotd msg x motd ^alias wmotd msg w motd ^alias xnewpass { if ([$C]!=[0]) { if ([$0]!=[]) { msg $x.host newpass $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /xnewpass ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wnewpass { if ([$C]!=[0]) { if ([$0]!=[]) { msg $w.host newpass $C $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /wnewpass ${cl} } } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xshowcommands { if ([$C]!=[0]) { msg x showcommands $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias wshowcommands { if ([$C]!=[0]) { msg w showcommands $C } if ([$C]==[0]) { echo $xw.logo ${red}Please have an active channel to use this command${cl} } } ^alias xshowignore msg x showignore ^alias wshowignore msg w showignore ^alias xverify { if ([$0]!=[]) { msg x verify $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /xverify ${cl} } } ^alias wverify { if ([$0]!=[]) { msg w verify $0 } if ([$0]==[]) { echo $xw.logo ${red}Correct syntax is /wverify ${cl} } } ^alias xping ping X ^alias wping ping W ^alias xwping ping X;ping W ###Online /xwconfig alias xwconfig { echo ${hred}ÖÄÄÄ${hyel}X-W/bx Utilz Configuration${hred}ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ·${cl} echo ${hred}º ${hyel}[${red}a${hyel}] ${yel}Set Up X-W channels ${hred}º${cl} echo ${hred}º ${hyel}[${red}b${hyel}] ${yel}Set Up Non X-W channels ${hred}º${cl} echo ${hred}º ${hyel}[${red}c${hyel}] ${yel}Remove X-W channels ${hred}º${cl} echo ${hred}º ${hyel}[${red}d${hyel}] ${yel}Remove Non X-W channels ${hred}º${cl} echo ${hred}º ${hyel}[${red}e${hyel}] ${yel}Toggle auto-doall on connection to an Undernet server ${hred}º${cl} echo ${hred}º ${hyel}[${red}f${hyel}] ${yel}Toggle Auto-Reop on deop in an X/W Channel ${hred}º${cl} echo ${hred}º ${hyel}[${red}s${hyel}] ${yel}Save Settings ${hred}º${cl} echo ${hred}ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĽ${cl} input_char "X-W Configure (enter=quit): " if ([$0]) {xwconfig.p2 $[1]0} } alias xwconfig.p2 { @ xw123 = toupper($[1]0) if (index($xw123 ABCDEFS) != -1) { if ([$0]==[A]) { xwconfig.a } if ([$0]==[B]) { xwconfig.b } if ([$0]==[C]) { xwconfig.c } if ([$0]==[D]) { xwconfig.d } if ([$0]==[E]) { xwconfig.e } if ([$0]==[F]) { xwconfig.f } if ([$0]==[S]) { xwconfig.save } } } alias xwconfig.a { echo ${hred}ÖÄÄÄÄÄÄÄÄÄ${hyel}X-W Channel Configuration${hred}ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ·${cl} echo ${hred}ºÄÄ${hyel}Channel #${hred}ÄÄÄÄÄÄ${hyel}Channel Þ X/W Þ Pass Þ Key${hred}ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĺ${cl} echo ${hred}º ${hyel}[${red}1${hyel}] ${yel} $chan1 $before(chan $dchan1) $pass1 $kchan1${cl} echo ${hred}º ${hyel}[${red}2${hyel}] ${yel} $chan2 $before(chan $dchan2) $pass2 $kchan2${cl} echo ${hred}º ${hyel}[${red}3${hyel}] ${yel} $chan3 $before(chan $dchan3) $pass3 $kchan3${cl} echo ${hred}º ${hyel}[${red}4${hyel}] ${yel} $chan4 $before(chan $dchan4) $pass4 $kchan4${cl} echo ${hred}º ${hyel}[${red}5${hyel}] ${yel} $chan5 $before(chan $dchan5) $pass5 $kchan5${cl} echo ${hred}º ${hyel}[${red}6${hyel}] ${yel} $chan6 $before(chan $dchan6) $pass6 $kchan6${cl} echo ${hred}º ${hyel}[${red}7${hyel}] ${yel} $chan7 $before(chan $dchan7) $pass7 $kchan7${cl} echo ${hred}º ${hyel}[${red}8${hyel}] ${yel} $chan8 $before(chan $dchan8) $pass8 $kchan8${cl} echo ${hred}º ${hyel}[${red}9${hyel}] ${yel} $chan9 $before(chan $dchan9) $pass9 $kchan9${cl} echo ${hred}º ${hyel}[${red}0${hyel}] ${yel} $chan10 $before(chan $dchan10) $pass10 $kchan10${cl} echo ${hred}ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĽ${cl} input_char "X-W Channel Configure (enter=quit): " if ([$0]) {xwconfig.cxw $[1]0} } alias xwconfig.cxw { @ xw1234 = toupper($[1]0) if (index($xw1234 1234567890) != -1) { if ([$0]==[1]) { input "X-W Channel #1 Channel Name: " if ([$0]) { @ chan1 = [$0]} input_char "X-W Channel #1 Is this channel an 'X' channel or 'W' channel?: " if ([$0]) { if ([$0]==[X]) { @ dchan1 = [xchan]} if ([$0]==[W]) { @ dchan1 = [wchan]} } input "X-W Channel #1 What password do you use?: " if ([$0]) { @ pass1 = [$0]} input "Channel key? : " if ([$0]) { @ kchan1 = [$0]} } if ([$0]==[2]) { input "X-W Channel #2 Channel Name: " if ([$0]) { @ chan2 = [$0]} input_char "X-W Channel #2 Is this channel an 'X' channel or 'W' channel?: " if ([$0]) { if ([$0]==[X]) { @ dchan2 = [xchan]} if ([$0]==[W]) { @ dchan2 = [wchan]} } input "X-W Channel #2 What password do you use?: " if ([$0]) { @ pass2 = [$0]} input "Channel key? : " if ([$0]) { @ kchan2 = [$0]} } if ([$0]==[3]) { input "X-W Channel #3 Channel Name: " if ([$0]) { @ chan3 = [$0]} input_char "X-W Channel #3 Is this channel an 'X' channel or 'W' channel?: " if ([$0]) { if ([$0]==[X]) { @ dchan3 = [xchan]} if ([$0]==[W]) { @ dchan3 = [wchan]} } input "X-W Channel #3 What password do you use?: " if ([$0]) { @ pass3 = [$0]} input "Channel key? : " if ([$0]) { @ kchan3 = [$0]} } if ([$0]==[4]) { input "X-W Channel #4 Channel Name: " if ([$0]) { @ chan4 = [$0]} input_char "X-W Channel #4 Is this channel an 'X' channel or 'W' channel?: " if ([$0]) { if ([$0]==[X]) { @ dchan4 = [xchan]} if ([$0]==[W]) { @ dchan4 = [wchan]} } input "X-W Channel #4 What password do you use?: " if ([$0]) { @ pass4 = [$0]} input "Channel key? : " if ([$0]) { @ kchan4 = [$0]} } if ([$0]==[5]) { input "X-W Channel #5 Channel Name: " if ([$0]) { @ chan5 = [$0]} input_char "X-W Channel #5 Is this channel an 'X' channel or 'W' channel?: " if ([$0]) { if ([$0]==[X]) { @ dchan5 = [xchan]} if ([$0]==[W]) { @ dchan5 = [wchan]} } input "X-W Channel #5 What password do you use?: " if ([$0]) { @ pass5 = [$0]} input "Channel key? : " if ([$0]) { @ kchan5 = [$0]} } if ([$0]==[6]) { input "X-W Channel #6 Channel Name: " if ([$0]) { @ chan6 = [$0]} input_char "X-W Channel #6 Is this channel an 'X' channel or 'W' channel?: " if ([$0]) { if ([$0]==[X]) { @ dchan6 = [xchan]} if ([$0]==[W]) { @ dchan6 = [wchan]} } input "X-W Channel #6 What password do you use?: " if ([$0]) { @ pass6 = [$0]} input "Channel key? : " if ([$0]) { @ kchan6 = [$0]} } if ([$0]==[7]) { input "X-W Channel #7 Channel Name: " if ([$0]) { @ chan7 = [$0]} input_char "X-W Channel #7 Is this channel an 'X' channel or 'W' channel?: " if ([$0]) { if ([$0]==[X]) { @ dchan7 = [xchan]} if ([$0]==[W]) { @ dchan7 = [wchan]} } input "X-W Channel #7 What password do you use?: " if ([$0]) { @ pass7 = [$0]} input "Channel key? : " if ([$0]) { @ kchan7 = [$0]} } if ([$0]==[8]) { input "X-W Channel #8 Channel Name: " if ([$0]) { @ chan8 = [$0]} input_char "X-W Channel #8 Is this channel an 'X' channel or 'W' channel?: " if ([$0]) { if ([$0]==[X]) { @ dchan8 = [xchan]} if ([$0]==[W]) { @ dchan8 = [wchan]} } input "X-W Channel #8 What password do you use?: " if ([$0]) { @ pass8 = [$0]} input "Channel key? : " if ([$0]) { @ kchan8 = [$0]} } if ([$0]==[9]) { input "X-W Channel #9 Channel Name: " if ([$0]) { @ chan9 = [$0]} input_char "X-W Channel #9 Is this channel an 'X' channel or 'W' channel?: " if ([$0]) { if ([$0]==[X]) { @ dchan9 = [xchan]} if ([$0]==[W]) { @ dchan9 = [wchan]} } input "X-W Channel #9 What password do you use?: " if ([$0]) { @ pass9 = [$0]} input "Channel key? : " if ([$0]) { @ kchan9 = [$0]} } if ([$0]==[10]) { input "X-W Channel #0 Channel Name: " if ([$0]) { @ chan10 = [$0]} input_char "X-W Channel #0 Is this channel an 'X' channel or 'W' channel?: " if ([$0]) { if ([$0]==[X]) { @ dchan10 = [xchan]} if ([$0]==[W]) { @ dchan10 = [wchan]} } input "X-W Channel #0 What password do you use?: " if ([$0]) { @ pass10 = [$0]} input "Channel key? : " if ([$0]) { @ kchan10 = [$0]} } } } alias xwconfig.b { echo ${hred}ÖÄÄÄÄÄ${hyel}Non X-W Channel Configuration${hred}ÄÄÄÄ·${cl} echo ${hred}ºÄÄ${hyel}Channel #${hred}ÄÄÄÄÄÄÄÄÄ${hyel}Set To Þ Key${hred}ÄÄÄÄÄĺ echo ${hred}º ${hyel}[${red}1${hyel}] ${yel} $nchan1 $nkchan1 echo ${hred}º ${hyel}[${red}2${hyel}] ${yel} $nchan2 $nkchan2 echo ${hred}º ${hyel}[${red}3${hyel}] ${yel} $nchan3 $nkchan3 echo ${hred}º ${hyel}[${red}4${hyel}] ${yel} $nchan4 $nkchan4 echo ${hred}º ${hyel}[${red}5${hyel}] ${yel} $nchan5 $nkchan5 echo ${hred}º ${hyel}[${red}6${hyel}] ${yel} $nchan6 $nkchan6 echo ${hred}º ${hyel}[${red}7${hyel}] ${yel} $nchan7 $nkchan7 echo ${hred}º ${hyel}[${red}8${hyel}] ${yel} $nchan8 $nkchan8 echo ${hred}º ${hyel}[${red}9${hyel}] ${yel} $nchan9 $nkchan9 echo ${hred}º ${hyel}[${red}0${hyel}] ${yel} $nchan10 $nkchan10 echo ${hred}ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĽ${cl} input_char "Non X-W Channel Configure (enter=quit): " if ([$0]) {xwconfig.nxw $[1]0} } alias xwconfig.nxw { @ xw12345 = toupper($[1]0) if (index($xw12345 1234567890) != -1) { if ([$0]==[1]) { input "Non X-W Channel #1 Channel Name: " if ([$0]) { @ nchan1 = [$0]} input "Channel key? : " if ([$0]) { @ nkchan1 = [$0]} } if ([$0]==[2]) { input "Non X-W Channel #2 Channel Name: " if ([$0]) { @ nchan2 = [$0]} input "Channel key? : " if ([$0]) { @ nkchan2 = [$0]} } if ([$0]==[3]) { input "Non X-W Channel #3 Channel Name: " if ([$0]) { @ nchan3 = [$0]} input "Channel key? : " if ([$0]) { @ nkchan3 = [$0]} } if ([$0]==[4]) { input "Non X-W Channel #4 Channel Name: " if ([$0]) { @ nchan4 = [$0]} input "Channel key? : " if ([$0]) { @ nkchan4 = [$0]} } if ([$0]==[5]) { input "Non X-W Channel #5 Channel Name: " if ([$0]) { @ nchan5 = [$0]} input "Channel key? : " if ([$0]) { @ nkchan5 = [$0]} } if ([$0]==[6]) { input "Non X-W Channel #6 Channel Name: " if ([$0]) { @ nchan6 = [$0]} input "Channel key? : " if ([$0]) { @ nkchan6 = [$0]} } if ([$0]==[7]) { input "Non X-W Channel #7 Channel Name: " if ([$0]) { @ nchan7 = [$0]} input "Channel key? : " if ([$0]) { @ nkchan7 = [$0]} } if ([$0]==[8]) { input "Non X-W Channel #8 Channel Name: " if ([$0]) { @ nchan8 = [$0]} input "Channel key? : " if ([$0]) { @ nkchan8 = [$0]} } if ([$0]==[9]) { input "Non X-W Channel #9 Channel Name: " if ([$0]) { @ nchan9 = [$0]} input "Channel key? : " if ([$0]) { @ nkchan9 = [$0]} } if ([$0]==[0]) { input "Non X-W Channel #0 Channel Name: " if ([$0]) { @ nchan10 = [$0]} input "Channel key? : " if ([$0]) { @ nkchan10 = [$0]} } } } alias xwconfig.c { echo ${hred}ÖÄÄÄÄÄ${hyel}Remove Channel${hred}ÄÄÄÄÄÄÄÄÄÄÄÄÄ${cl} echo ${hred}º ${hyel}[${red}1${hyel}] ${red}$chan1${cl} echo ${hred}º ${hyel}[${red}2${hyel}] ${red}$chan2${cl} echo ${hred}º ${hyel}[${red}3${hyel}] ${red}$chan3${cl} echo ${hred}º ${hyel}[${red}4${hyel}] ${red}$chan4${cl} echo ${hred}º ${hyel}[${red}5${hyel}] ${red}$chan5${cl} echo ${hred}º ${hyel}[${red}6${hyel}] ${red}$chan6${cl} echo ${hred}º ${hyel}[${red}7${hyel}] ${red}$chan7${cl} echo ${hred}º ${hyel}[${red}8${hyel}] ${red}$chan8${cl} echo ${hred}º ${hyel}[${red}9${hyel}] ${red}$chan9${cl} echo ${hred}º ${hyel}[${red}0${hyel}] ${red}$chan10${cl} echo ${hred}ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ${cl} input_char "Remove X-W Channel (enter=quit) #: " if ([$0]) {xwconfig.rxw1 $[1]0} } alias xwconfig.rxw1 { @ xw123456 = toupper($[1]0) if (index($xw123456 1234567890) != -1) { if ([$0]==[1]) { @ chan1 = [] @ dchan1 = [] @ pass1 = [] @ kchan1 = [] } if ([$0]==[2]) { @ chan2 = [] @ dchan2 = [] @ pass2 = [] @ kchan2 = [] } if ([$0]==[3]) { @ chan3 = [] @ dchan3 = [] @ pass3 = [] @ kchan3 = [] } if ([$0]==[4]) { @ chan4 = [] @ dchan4 = [] @ pass4 = [] @ kchan4 = [] } if ([$0]==[5]) { @ chan5 = [] @ dchan5 = [] @ pass5 = [] @ kchan5 = [] } if ([$0]==[6]) { @ chan6 = [] @ dchan6 = [] @ pass6 = [] @ kchan6 = [] } if ([$0]==[7]) { @ chan7 = [] @ dchan7 = [] @ pass7 = [] @ kchan7 = [] } if ([$0]==[8]) { @ chan8 = [] @ dchan8 = [] @ pass8 = [] @ kchan8 = [] } if ([$0]==[9]) { @ chan9 = [] @ dchan9 = [] @ pass9 = [] @ kchan9 = [] } if ([$0]==[0]) { @ chan10 = [] @ dchan10 = [] @ pass10 = [] @ kchan10 = [] } } } alias xwconfig.d { echo ${hred}ÖÄÄÄÄÄ${hyel}Remove Channel${hred}ÄÄÄÄÄÄÄÄÄÄÄÄÄ${cl} echo ${hred}º ${hyel}[${red}1${hyel}] ${red}$nchan1${cl} echo ${hred}º ${hyel}[${red}2${hyel}] ${red}$nchan2${cl} echo ${hred}º ${hyel}[${red}3${hyel}] ${red}$nchan3${cl} echo ${hred}º ${hyel}[${red}4${hyel}] ${red}$nchan4${cl} echo ${hred}º ${hyel}[${red}5${hyel}] ${red}$nchan5${cl} echo ${hred}º ${hyel}[${red}6${hyel}] ${red}$nchan6${cl} echo ${hred}º ${hyel}[${red}7${hyel}] ${red}$nchan7${cl} echo ${hred}º ${hyel}[${red}8${hyel}] ${red}$nchan8${cl} echo ${hred}º ${hyel}[${red}9${hyel}] ${red}$nchan9${cl} echo ${hred}º ${hyel}[${red}0${hyel}] ${red}$nchan10${cl} echo ${hred}ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ${cl} input_char "Remove Non X-W Channel (enter=quit) #: " if ([$0]) {xwconfig.rxw2 $[1]0} } alias xwconfig.rxw2 { @ xw1234567 = toupper($[1]0) if (index($xw1234567 1234567890) != -1) { if ([$0]==[1]) { @ nchan1 = [] } if ([$0]==[2]) { @ nchan2 = [] } if ([$0]==[3]) { @ nchan3 = [] } if ([$0]==[4]) { @ nchan4 = [] } if ([$0]==[5]) { @ nchan5 = [] } if ([$0]==[6]) { @ nchan6 = [] } if ([$0]==[7]) { @ nchan7 = [] } if ([$0]==[8]) { @ nchan8 = [] } if ([$0]==[9]) { @ nchan9 = [] } if ([$0]==[0]) { @ nchan10 = [] } } } alias xwconfig.e { input_char "Auto XWDoAll on connection to an Undernet server (Y/N): " if ([$0]) { if ([$0]==[Y]) { @ xw.autodoall = [on] echo $xw.logo ${hred}X/W Auto Do All is now set to: ON${cl} } if ([$0]==[N]) { @ xw.autodoall = [off] echo $xw.logo ${hred}X/W Auto Do All is now set to: OFF${cl} } } } alias xwconfig.f { input_char "Auto Reop on deop on in an X/W channel (Y/N): " if ([$0]) { if ([$0]==[Y]) { @ xw.reop = [on] echo $xw.logo ${hred}X/W Auto Reop is now: ON${cl} } if ([$0]==[N]) { @ xw.reop = [off] echo $xw.logo ${hred}X/W Auto Reop is now: OFF${cl} } } } alias xwconfig.save { @rename(~/.BitchX/.xw.sav ~/.BitchX/.xw.sav~) @savexw = open(~/.BitchX/.xw.sav W T) @write($savexw ### X-W/bx Utilz Config File ###) @write($savexw ^assign xw.autodoall $xw.autodoall) @write($savexw ^assign xw.reop $xw.reop) @write($savexw ^assign chan1 $chan1) @write($savexw ^assign chan2 $chan2) @write($savexw ^assign chan3 $chan3) @write($savexw ^assign chan4 $chan4) @write($savexw ^assign chan5 $chan5) @write($savexw ^assign chan6 $chan6) @write($savexw ^assign chan7 $chan7) @write($savexw ^assign chan8 $chan8) @write($savexw ^assign chan9 $chan9) @write($savexw ^assign chan10 $chan10) @write($savexw ^assign kchan1 $kchan1) @write($savexw ^assign kchan2 $kchan2) @write($savexw ^assign kchan3 $kchan3) @write($savexw ^assign kchan4 $kchan4) @write($savexw ^assign kchan5 $kchan5) @write($savexw ^assign kchan6 $kchan6) @write($savexw ^assign kchan7 $kchan7) @write($savexw ^assign kchan8 $kchan8) @write($savexw ^assign kchan9 $kchan9) @write($savexw ^assign kchan10 $kchan10) @write($savexw ^assign dchan1 $dchan1) @write($savexw ^assign dchan2 $dchan2) @write($savexw ^assign dchan3 $dchan3) @write($savexw ^assign dchan4 $dchan4) @write($savexw ^assign dchan5 $dchan5) @write($savexw ^assign dchan6 $dchan6) @write($savexw ^assign dchan7 $dchan7) @write($savexw ^assign dchan8 $dchan8) @write($savexw ^assign dchan9 $dchan9) @write($savexw ^assign dchan10 $dchan10) @write($savexw ^assign pass1 $pass1) @write($savexw ^assign pass2 $pass2) @write($savexw ^assign pass3 $pass3) @write($savexw ^assign pass4 $pass4) @write($savexw ^assign pass5 $pass5) @write($savexw ^assign pass6 $pass6) @write($savexw ^assign pass7 $pass7) @write($savexw ^assign pass8 $pass8) @write($savexw ^assign pass9 $pass9) @write($savexw ^assign pass10 $pass10) @write($savexw ^assign nchan1 $nchan1) @write($savexw ^assign nchan2 $nchan2) @write($savexw ^assign nchan3 $nchan3) @write($savexw ^assign nchan4 $nchan4) @write($savexw ^assign nchan5 $nchan5) @write($savexw ^assign nchan6 $nchan6) @write($savexw ^assign nchan7 $nchan7) @write($savexw ^assign nchan8 $nchan8) @write($savexw ^assign nchan9 $nchan9) @write($savexw ^assign nchan10 $nchan10) @write($savexw ^assign nkchan1 $nkchan1) @write($savexw ^assign nkchan2 $nkchan2) @write($savexw ^assign nkchan3 $nkchan3) @write($savexw ^assign nkchan4 $nkchan4) @write($savexw ^assign nkchan5 $nkchan5) @write($savexw ^assign nkchan6 $nkchan6) @write($savexw ^assign nkchan7 $nkchan7) @write($savexw ^assign nkchan8 $nkchan8) @write($savexw ^assign nkchan9 $nkchan9) @write($savexw ^assign nkchan10 $nkchan10) @close($savexw) ^exec chmod 600 ~/.BitchX/.xw.sav ^echo $xw.logo ${hred}Current config saved to ~/.BitchX/.xw.sav${cl} } alias xwsave xwconfig.save eval echo $xw.logo ${hred}Type /xwhelp for a list of commands${cl} ^on #-connect 123 "*" {if (rmatch($S *undernet*)) { if ([$xw.autodoall]==[on]) { xwdoall } } } ^on -mode "*" if ([$pattern(*-o* $2)]) { if ([$xw.reop]==[on]&&[$N]!=[$0]&&[rmatch($S *undernet*)]&&[$common($N / $3-)]==[$N]) { if ([$1]==[$chan1]) { if ([$dchan1]==[xchan]) { msg x op $1 $N } if ([$dchan1]==[wchan]) { msg w op $1 $N } echo $xw.logo ${hred}You were deoped on $1 by $0${cl} echo $xw.logo ${hred}Stand-by for Auto-Reops${cl} } if ([$1]==[$chan2]) { if ([$dchan2]==[xchan]) { msg x op $1 $N } if ([$dchan2]==[wchan]) { msg w op $1 $N } echo $xw.logo ${hred}You were deoped on $1 by $0${cl} echo $xw.logo ${hred}Stand-by for Auto-Reops${cl} } if ([$1]==[$chan3]) { if ([$dchan3]==[xchan]) { msg x op $1 $N } if ([$dchan3]==[wchan]) { msg w op $1 $N } echo $xw.logo ${hred}You were deoped on $1 by $0${cl} echo $xw.logo ${hred}Stand-by for Auto-Reops${cl} } if ([$1]==[$chan4]) { if ([$dchan4]==[xchan]) { msg x op $1 $N } if ([$dchan4]==[wchan]) { msg w op $1 $N } echo $xw.logo ${hred}You were deoped on $1 by $0${cl} echo $xw.logo ${hred}Stand-by for Auto-Reops${cl} } if ([$1]==[$chan5]) { if ([$dchan5]==[xchan]) { msg x op $1 $N } if ([$dchan5]==[wchan]) { msg w op $1 $N } echo $xw.logo ${hred}You were deoped on $1 by $0${cl} echo $xw.logo ${hred}Stand-by for Auto-Reops${cl} } if ([$1]==[$chan6]) { if ([$dchan6]==[xchan]) { msg x op $1 $N } if ([$dchan6]==[wchan]) { msg w op $1 $N } echo $xw.logo ${hred}You were deoped on $1 by $0${cl} echo $xw.logo ${hred}Stand-by for Auto-Reops${cl} } if ([$1]==[$chan7]) { if ([$dchan7]==[xchan]) { msg x op $1 $N } if ([$dchan7]==[wchan]) { msg w op $1 $N } echo $xw.logo ${hred}You were deoped on $1 by $0${cl} echo $xw.logo ${hred}Stand-by for Auto-Reops${cl} } if ([$1]==[$chan8]) { if ([$dchan8]==[xchan]) { msg x op $1 $N } if ([$dchan8]==[wchan]) { msg w op $1 $N } echo $xw.logo ${hred}You were deoped on $1 by $0${cl} echo $xw.logo ${hred}Stand-by for Auto-Reops${cl} } if ([$1]==[$chan9]) { if ([$dchan9]==[xchan]) { msg x op $1 $N } if ([$dchan9]==[wchan]) { msg w op $1 $N } echo $xw.logo ${hred}You were deoped on $1 by $0${cl} echo $xw.logo ${hred}Stand-by for Auto-Reops${cl} } if ([$1]==[$chan10]) { if ([$dchan10]==[xchan]) { msg x op $1 $N } if ([$dchan10]==[wchan]) { msg w op $1 $N } echo $xw.logo ${hred}You were deoped on $1 by $0${cl} echo $xw.logo ${hred}Stand-by for Auto-Reops${cl} } } }