alias creseti {/c -inst+mlk 40 resetting;/c +inst-mlk resetting}
alias creset {/c -nst+milk 40 resetting;/c +nst-milk resetting}
alias ctcpreply if ([$0]) {gecho ${gc.ctcpban}ctcp${cl}: ${gc.ctcp}$tolower($1) reply${cl} from ${gc.ctcpnk}$0${cl}: $2-}
alias ctcpreq if ([$0]) {gecho ${gc.ctcpban}ctcp${cl}: ${gc.ctcp}$tolower($2) request${cl} from ${gc.ctcpnk}$0${cl} ${gc.peren}\(${gc.ctcpnk}$userhost()${gc.peren}\)${cl} to ${gc.ctcpnk}$1${cl}}
alias cwait {wait -CMD #;wait -CMD $0-}
# Cycle written by mikh
alias cycle {
if ([$0]) {
if (onchannel($N $0)) {
@ _gk.t = key($0)
//leave $0
^hook gzcycle $0
if (chanwindow($0)) {
wait -cmd //window $chanwindow($0) channel $0
if (_gk.t) {//quote JOIN $0 $_gk.t}
}{
wait -cmd //quote JOIN $0 $_gk.t
}
}{
gecho ${gc.errortopic}You are not on channel $0 ${cl}
}
^purge _gk
}{
if (C) {
cycle $C
}{
gecho ${gc.errortopic}You are not on any channel in this window${cl}
#input, two number, in which percentage will be computed
#ex: 1234 123456
^set float on
@ _dp.per = [${[$0] * 100}] / [$1]
^set float off
@ function_return = dcc.perc($_dp.per)
purge _dp
}
alias deban unban
alias disco {say You know what I wanna do now?;WAIT;/me puts on $gender leisure suit and does $gender best Travolta impression...;say STRUT!!!!!!!!!!!!!}
alias reop {if (C) {if (ischanop($N $C)) {//mode $C -o+o $0 $0}{gecho You are not a chaneop}}{gecho You are not on a channel}}
alias mreop {
if (C) {
if (ischanop($N $C)) {
op $stripw($N $gz.chanops($C))
}{gecho You are not op'd}
}{gecho No current channel}
}
alias msglogchk {if ([$logging]==[ON]) {gecho ${gc.msgloginfo}Messages are Currently Being Logged${cl}}{gecho ${gc.msgloginfo}Messages are Not Being Logged${cl}}}
input "Settings have changed, would you like to save before quitting? [Y/n]" if ([$0]==[y]) {/save;_signoff $_si.msg;^assign -_si.msg}{_signoff $_si.msg;^assign -_si.msg}
}{
_signoff $0-
^assign -_si.msg
}
}
alias _signoff {
@ si.msg = [$0-]
if (dccitem(0)!=[]) {
input "You have DCC's in progress, are you sure you wish to Quit IRC? [Y/n]" if ([$0]==[y]) {
if (si.msg) {
//signoff $cntl2mirc(f0 $si.msg) $gemz.str
}{
//signoff $quit[$rand($numquit)] $gemz.str
}
}
}{
if (si.msg) {
//signoff $si.msg $gemz.str
}{
//signoff $quit[$rand($numquit)] $gemz.str
}
}
^assign -si.msg
}
alias save gsave $*
alias saveall gsave $*
alias sc names $*
alias setaway away $*
alias setback back $*
alias setup {gecho NOTE: All Setup Items are now in the Main Main Menu->Setup.}
alias showbans banstat $*
alias showajoin {
gecho ***${gc.errortopic}Listing Auto Join Channels${cl}***
# for version detection, put a 4 char word for the script version (to make it look clean)
^on ^ctcp_reply "% VERSION *" {verreply ???? $*}
^on ^ctcp_reply "% VERSION *gem*" {verreply GemZ $*;@ gemzusers++}
^on ^ctcp_reply "% VERSION *SrFrog*" {verreply LiCe $*}
^on ^ctcp_reply "% VERSION *Kanj*" {verreply KMP_ $*}
^on ^ctcp_reply "% VERSION *gamm*" {verreply Gama $*}
^on ^ctcp_reply "% VERSION *AtlantiS*" {verreply Atla $*}
^on ^ctcp_reply "% VERSION *PM IRC*" {verreply PMIR $*}
^on ^ctcp_reply "% VERSION *mIRC32*" {verreply mIRC $*}
^on ^ctcp_reply "% VERSION *mIRC16*" {verreply mIRC $*}
^on ^ctcp_reply "% VERSION *ScrollZ*" {verreply _sz_ $*}
^on ^ctcp_reply "% VERSION *BitchX*" {verreply bchX $*}
^on ^ctcp_reply "% VERSION *PIRCH32*" {verreply prch $*}
^on ^ctcp_reply "% VERSION *CtoolZ*" {verreply CtlZ $*}
^on ^ctcp_reply "% VERSION *:OpenChat/2 OS/2 PM*" {verreply OCHT $*}
alias verreply if ([$0]) {if ([$ctcpvers]==[ON]) {gecho ${gc.ctcpban}ctcp${cl}: ${gc.ctcp}$tolower($2) reply${cl} [$0\] from ${gc.ctcpnk}$1${cl}: $3-}{ctcpreply $1-}}
^on ^ctcp_reply "% PING *" {
@ ctcp_replytmp = time() - [$2]
gecho ${gc.ctcpban}ctcp${cl}: ${gc.ctcp}$tolower($1) reply${cl} from ${gc.ctcpnk}$0${cl}: $tdiff($ctcp_replytmp)
^assign -ctcp_replytmp
}
^on ^channel_synch "*" {gecho your join to channel $0\ is now synched${cl} \($1\ seconds\)}
^on ^channel_signoff "*" {
ndljoin $0 $1
if (isminimized($0)) {gz.bkgd}
if (!match($0 $lchanlist)) {
gz.secho quit $0 Signoff for ${gc.sign}$1${cl} in ${gc.sign}$0${cl}: ${gc.peren}\(${cl}$fix.mirc(${cl} $2-)${gc.peren}\)${cl} $timestamp()
}
}
^on ^channel_signoff "% % %.% %.%" {
if (isminimized($0)) {gz.bkgd}
ndljoin $0 $1
if (isbogus($1-)) {
gz.secho quit $0 Signoff for ${gc.sign}$1${cl} in ${gc.sign}$0${cl} ${gc.peren}\(${cl}$2-${gc.peren}\)${cl}
gz.secho kick $2 ${gc.kicked}$0${cl} was kicked from ${gc.kickc}$2${cl} by ${gc.kickn}$1${cl} ${gc.peren}\(${cl}$fix.mirc(${cl} $3-)${gc.peren}\)${cl} $timestamp()
//xecho -t $1 $gemz Channel $1\ created $strftime($2 %Z %c)
}
}
^on ^332 "*" {gecho ${gc.topic}topic${cl} for ${gc.topicchan}$1${cl}: $fix.mirc(${cl} $2-)}
^on ^333 "*" {if ([$3]) {gecho ${gc.topic}topic${cl} for ${gc.topicchan}$1${cl} set by ${gc.topic}$2${cl} on ${gc.topicchan}$fixdate($3)${cl}} {gecho $1-}}
#Provided for compatability with Spiffy XDCC Replies.
alias xdcc.oldfooter {@ function_return = [$gx Total Offered: $gz.bytestomegs($gx.totaloffered()) MB Total Grabbed: $gz.bytestomegs($gx.totalsent()) MB]}
alias gx.gettype {@ function_return = word(0 $dccitem($0))}
alias gx.getnick {@ function_return = word(1 $dccitem($0))}
alias gx.getstat {@ function_return = word(2 $dccitem($0))}
alias gx.gettime {@ function_return = word(3 $dccitem($0))}
alias gx.getoffset {@ function_return = word(4 $dccitem($0))}
alias gx.getread {@ function_return = word(5 $dccitem($0))}
alias gx.getsent {@ function_return = word(6 $dccitem($0))}