Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Aliases
- /ug /me huggles $$1
- /hug /me 4h 07u 08g 09g 12l 06e 13s $$1-
- /cud /me 4c 07u 08d 09d 12l 06e 13s $$1-
- /away /nick Toby|Away
- /back /nick `Toby
- /bnc /nick Toby|BNC
- /ghost /ns ghost `Toby
- /flashbang /msg $chan 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG 0,8FLASH BANG 8,0FLASH BANG
- /minibeg /msg Vonte Vonte get a war
- /global /amsg 12« 1[ 12amsg 1] 12» $$1-
- /face /msg $chan ¯\_(ツ)_/¯
- Remote
- PROHler
- menu * {
- ProHLer
- .$iif(!%ProHLer.On,$style(2))Turn ProHLer Off:/ProHLer.Off
- .$iif(%ProHLer.On,$style(2))Turn ProHLer On:/ProHLer.On
- .-
- .Open ProHler:/ProHLer.Open
- }
- menu nicklist {
- ProHLer
- .$iif($1 == $null,$style(2)) Add to NonHighlighting Nicknames:/ProHLer.Menu.NickList.1 $1
- }
- menu @ProHLer.* {
- dclick:/ProHLer.Menu.Window.2 $1-
- ProHLer
- .Add to NonHighlighting Nicknames:ProHLer.Menu.Window.1 $active
- }
- ;If You have your own color identifers you can replace the ProHLer identifers with something like this:
- ;alias ProHLer.C1 {
- ; var %c = $c1(MSG)
- ; %c = $gettok($remove(%c, ,MSG),1,44)
- ; return $iif($prop == code,%c,$iif($1,$+( ,%c,$1),$+( ,%c)))
- ;}
- alias ProHLer.C1 {
- var %c = 04
- %c = $gettok($remove(%c, ,MSG),1,44)
- return $iif($prop == code,%c,$iif($1,$+( ,%c,$1),$+( ,%c)))
- }
- alias ProHLer.C2 {
- var %c = 03
- %c = $gettok($remove(%c, ,MSG),1,44)
- return $iif($prop == code,%c,$iif($1,$+( ,%c,$1),$+( ,%c)))
- }
- alias ProHLer.C3 {
- var %c = 02
- %c = $gettok($remove(%c, ,MSG),1,44)
- return $iif($prop == code,%c,$iif($1,$+( ,%c,$1),$+( ,%c)))
- }
- alias ProHLer.C4 {
- var %c = 05
- %c = $gettok($remove(%c, ,MSG),1,44)
- return $iif($prop == code,%c,$iif($1,$+( ,%c,$1),$+( ,%c)))
- }
- alias ProHLer.CloseWindows {
- if ($input(Are you sure you want to close all the ProHLer windows?,yqd,ProHLer - Question)) {
- var %total $window(@ProHLer.*,0)
- close -@ProHLer.*
- if ($dialog(ProHLer.DMain)) dialog -x $v1
- if ($dialog(ProHLer.DNoHL)) dialog -x $v1
- if ($dialog(ProHLer.DHLers)) dialog -x $v1
- if ($dialog(ProHLer.DResetStats)) dialog -x $v1
- if ($dialog(ProHLer.DSettings)) dialog -x $v1
- noop $input(All ProHLer windows are closed! Total: %total,oid,ProHLer - Info)
- }
- }
- alias ProHLer.Help {
- if ($window(@ProHLer.Help)) {
- clear @ProHLer.Help
- }
- else window -k0vxz @ProHLer.Help
- aline $ProHLer.C1().code @ProHLer.Help <***>ProHLer HighLight detection script by: Marlinc - Version $ProHLer.Version $+ <***>
- aline $ProHLer.C3().code @ProHLer.Help Common aliases:
- aline @ProHLer.Help $ProHLer.C2(/ProHLer.Open) $ProHLer.C1(=) $ProHLer.C3(Opens the main screen of ProHLer wich provides Stats and Settings)
- aline @ProHLer.Help $ProHLer.C2(/ProHLer.CloseWindows) $ProHLer.C1(=) $ProHLer.C3(Closes all the ProHLer windows)
- aline @ProHLer.Help $ProHLer.C2(/ProHLer.Help) $ProHLer.C1(=) $ProHLer.C3(Opens this help screen)
- aline @ProHLer.Help $ProHLer.C2(/ProHLer.On) $ProHLer.C1(=) $ProHLer.C3(This will turn ProHLer on)
- aline @ProHLer.Help $ProHLer.C2(/ProHLer.Off) $ProHLer.C1(=) $ProHLer.C3(This will turn ProHLer off)
- aline @ProHLer.Help $ProHLer.C2(/ProHLer.Changelog) $ProHLer.C1(=) $ProHLer.C3(Opens the ProHLer changelog)
- aline $ProHLer.C3().code @ProHLer.Help -----
- aline $ProHLer.C3().code @ProHLer.Help Developer aliases/identifiers/variables:
- aline @ProHLer.Help $ProHLer.C2(/ProHLer.Nicks.Filter) $ProHLer.C1(=) $ProHLer.C3(Sorts the nicknames that highlighted you to a file called ProHLer.NicksOUT.txt)
- aline @ProHLer.Help $ProHLer.C2(/ProHLer.Chans.Filter) $ProHLer.C1(=) $ProHLer.C3(Sorts the channels where you are highlighted you to a file called ProHLer.ChansOUT.txt)
- aline @ProHLer.Help $ProHLer.C2($!ProHLer.Version) $ProHLer.C1(=) $ProHLer.C3(Returns the current ProHLer version)
- aline @ProHLer.Help $ProHLer.C2($!ProHLer.Duration) $ProHLer.C1(=) $ProHLer.C3(Returns a $ProHLer.Duration(12345) format of $!duration)
- aline @ProHLer.Help $ProHLer.C2($!ProHLer.C1) $ProHLer.C1(=) $ProHLer.C3(Returns ProHLer color 1)
- aline @ProHLer.Help $ProHLer.C2($!ProHLer.C2) $ProHLer.C1(=) $ProHLer.C3(Returns ProHLer color 2)
- aline @ProHLer.Help $ProHLer.C2($!ProHLer.C3) $ProHLer.C1(=) $ProHLer.C3(Returns ProHLer color 3)
- aline @ProHLer.Help $ProHLer.C2($!ProHLer.C4) $ProHLer.C1(=) $ProHLer.C3(Returns ProHLer color 4)
- aline @ProHLer.Help $ProHLer.C2($!ProHLer.C5) $ProHLer.C1(=) $ProHLer.C3(Returns ProHLer color 5)
- aline @ProHLer.Help $ProHLer.C2($!ProHler.NoHL) $ProHLer.C1(=) $ProHLer.C3(If no nickname specified it will return a list of nicknames that can't highlight you)
- aline @ProHLer.Help $ProHLer.C2($+(%,ProHLer.LastUpdate)) $ProHLer.C1(=) $ProHLer.C3(Returns the time of the last update in $!ctime format)
- aline @ProHLer.Help $ProHLer.C2($+(%,ProHLer.Version)) $ProHLer.C1(=) $ProHLer.C3(Returns the current ProHLer version. This is only to check if you updated you ProHLer version)
- aline @ProHLer.Help $ProHLer.C2($+(%,ProHLer.TotalHls)) $ProHLer.C1(=) $ProHLer.C3(Returns the total of highlights you got)
- }
- alias ProHLer.ChangeLog {
- if ($window(@ProHLer.Help)) {
- clear @ProHLer.Help
- }
- else window -k0vxz @ProHLer.Help
- aline $ProHLer.C1().code @ProHLer.Help <***>ProHLer HighLight detection script by: Marlinc - Version $ProHLer.Version $+ <***>
- aline $ProHLer.C3().code @ProHLer.Help Changelog $ProHLer.Version $+ :
- aline @ProHLer.Help $ProHLer.C2(----- 1 -----) $ProHLer.C1(=) $ProHLer.C3(Add updatechecker)
- aline @ProHLer.Help $ProHLer.C2(----- 2 -----) $ProHLer.C1(=) $ProHLer.C3(Changed a type mistake: Allowd to Allowed)
- aline @ProHLer.Help $ProHLer.C2(----- 3 -----) $ProHLer.C1(=) $ProHLer.C3(Added a settings dialog)
- aline @ProHLer.Help $ProHLer.C2(----- 4 -----) $ProHLer.C1(=) $ProHLer.C3(Added a question to ask if the updatechecker needs to start when the main window opens)
- aline @ProHLer.Help $ProHLer.C2(----- 5 -----) $ProHLer.C1(=) $ProHLer.C3(Added a question to ask if ProHLer needs to at ur current nickname to your highlighters $+ $chr(40) $+ Only when firstrun $+ $chr(41))
- aline @ProHLer.Help $ProHLer.C2(----- 6 -----) $ProHLer.C1(=) $ProHLer.C3(Added common alias /ProHLer.ChangeLog)
- aline @ProHLer.Help $ProHLer.C2(----- 7 -----) $ProHLer.C1(=) $ProHLer.C3(Added "Close all ProHLer Windows" to the userhighlight listbox)
- aline @ProHLer.Help $ProHLer.C2(----- 8 -----) $ProHLer.C1(=) $ProHLer.C3(Color bug solved at the highlight tips)
- aline @ProHLer.Help $ProHLer.C2(----- 8 -----) $ProHLer.C1(=) $ProHLer.C3(Install/UpdateWindow bug solved)
- }
- alias ProHLer.Duration {
- return $replacecs($duration($1),hrs,Hours,hr,Hour,mins,Minutes,min,Minute,secs,Seconds,sec,Second,days,Days,day,Day,wks,Weeks,wk,Week)
- }
- alias ProHLer.Menu.NickList.1 {
- set %proHler.DNoHL.nick $1
- dialog -mordv ProHLer.DNoHL ProHLer.DNoHL
- }
- alias ProHLer.Menu.Window.1 {
- set %proHler.DNoHL.nick $remove($1,@ProHLer.)
- dialog -mordv ProHLer.DNoHL ProHLer.DNoHL
- }
- alias ProHLer.Menu.Window.2 {
- if ($mouse.lb) {
- if ($1 == 1) {
- set %proHler.DNoHL.nick $remove($active,@ProHLer.)
- dialog -mordv ProHLer.DNoHL ProHLer.DNoHL
- }
- elseif ($1 == 2) ProHLer.Open
- elseif ($1 == 3) window -c $active
- elseif ($1 == 4) ProHLer.CloseWindows
- }
- }
- alias ProHLer.UpdateCheck.Start {
- set %ProHLer.UpdateCheck.LastCheck $ctime
- if ($sock(ProHLer.UpdateCheck)) echo -a socket is al open
- else {
- if ($1) set %ProHLer.UpdateCheck.Alias $1
- else set %ProHLer.UpdateCheck.Alias ProHLer.UpdateCheck.Return1
- if ($window(@ProHLer.UpdateCheck)) clear @ProHLer.UpdateCheck
- else window -k0n2h @ProHLer.UpdateCheck
- aline $ProHLer.C1().code @ProHLer.UpdateCheck <***>ProHLer HighLight detection script by: Marlinc - Version $ProHLer.Version $+ <***>
- aline $ProHLer.C3().code @ProHLer.UpdateCheck Checking for new version...
- sockopen ProHLer.UpdateCheck mchosts.co.cc 80
- }
- }
- on *:sockopen:ProHLer.UpdateCheck*: {
- sockwrite -nt $sockname GET /mirc/ProHLer-UpdateCheck.php HTTP/1.1
- sockwrite -nt $sockname Host: mchosts.co.cc
- sockwrite -nt $sockname User-Agent: ProHLer VersionCheck
- sockwrite -nt $sockname $crlf
- }
- on *:sockread:ProHLer.UpdateCheck*: {
- if ($sockerr > 0) halt
- var %data
- sockread %data
- set %ProHLer.UpdateCheck.HTTP.Code $gettok(%data,2,32)
- set %ProHLer.UpdateCheck.HTTP.Response $gettok(%data,3-,32)
- while ($sockbr) {
- sockread %data
- if (DATA:* iswm %data) {
- var %data $mid(%data,6)
- set %ProHLer.UpdateCheck.Data.NewVersion $gettok(%data,1,44)
- set %ProHLer.UpdateCheck.Data.SwiftIRCUrl $gettok(%data,2,44)
- }
- }
- ProHLer.UpdateCheck.Check
- }
- alias ProHLer.UpdateCheck.Check {
- if ($window(@ProHLer.UpdateCheck)) {
- if (%ProHLer.UpdateCheck.HTTP.Code == 200) {
- aline $ProHLer.C1().code @ProHLer.UpdateCheck Data downloaded successfull!
- aline $ProHLer.C1().code @ProHLer.UpdateCheck Checking data...
- aline @ProHLer.UpdateCheck $ProHLer.C1(The newest) $ProHLer.C2(ProHLer) $ProHLer.C1(version is) $ProHLer.C2(%ProHLer.UpdateCheck.Data.NewVersion)
- if ($ProHLer.Version < %ProHLer.UpdateCheck.Data.NewVersion) {
- aline @ProHLer.UpdateCheck $ProHLer.C1(Please go to) $ProHLer.C2(%ProHLer.UpdateCheck.Data.SwiftIRCUrl) $ProHLer.C1(and upgrade ur) $ProHLer.C2(ProHLer) $ProHLer.C1(to version) $ProHLer.C2(%ProHLer.UpdateCheck.Data.NewVersion) $+ $ProHLer.C1(!)
- }
- else aline @ProHLer.UpdateCheck $ProHLer.C1(You already got the newest version of) $ProHLer.C2(ProHLer) $ProHLer.C1(there no need to upgrade!)
- }
- else {
- aline $ProHLer.C1().code @ProHLer.UpdateCheck An error has occurred while checking for a new version:
- aline @ProHLer.UpdateCheck $ProHLer.C1(HTTP-Errorcode =) $c2(%ProHLer.UpdateCheck.HTTP.Code)
- aline @ProHLer.UpdateCheck $ProHLer.C1(HTTP-Errorname =) $c2(%ProHLer.UpdateCheck.HTTP.Response)
- }
- aline $ProHLer.C3().code @ProHLer.UpdateCheck -----
- }
- if (%ProHLer.UpdateCheck.Alias) .timerProHLer.UpdateCheck.AliasTimer 1 0 %ProHLer.UpdateCheck.Alias @ProHLer.UpdateCheck
- }
- alias ProHLer.UpdateCheck.Return1 {
- window -a $gettok($1,1,59)
- }
- alias ProHLer.UpdateCheck.Return2 {
- if (%ProHLer.UpdateCheck.HTTP.Code == 200) {
- if ($ProHLer.Version < %ProHLer.UpdateCheck.Data.NewVersion) {
- if ($dialog(ProHLer.DMain)) dialog -n $v1
- if ($input(ProHLer Version %ProHLer.UpdateCheck.Data.NewVersion is now available! Do you want to see the update url?,yqd,ProHLer - Question)) {
- window -aw3 @ProHLer.UpdateCheck
- }
- if ($dialog(ProHLer.DMain)) dialog -o $v1
- }
- else window -c @ProHLer.UpdateCheck
- }
- else window -c @ProHLer.UpdateCheck
- }
- alias ProHler.Version { return 1.31 }
- alias ProHLer.Open {
- if ($dialog(ProHLer.DMain)) dialog -x ProHLer.DMain
- if (%ProHLer.On == $null) set %ProHLer.On $true
- if (%ProHLer.Version) {
- if (%ProHLer.Version < $ProHler.Version) {
- var %OldVer %ProHLer.Version
- if (%ProHLer.LastUpdate) var %OldUpdate %ProHLer.LastUpdate
- ProHLer.Nicks.Filter
- ProHLer.Chans.Filter
- noop $input(Thank you for upgrading to ProHLer version " $+ $ProHLer.Version $+ "! $crlf $crlf Please wait patient while we check your current settings!,oid,ProHLer - Info)
- window -xdok0g1 @ProHLer.SettingsCheck
- aline $ProHLer.C1().code @ProHLer.SettingsCheck <***>ProHLer HighLight detection script by: Marlinc<***>
- aline $ProHLer.C3().code @ProHLer.SettingsCheck Loading nickname's that HighLighted you:
- var %i = 1
- while (%i <= $lines(ProHLer.NicksOUT.txt)) {
- var %name $gettok($read(ProHLer.NicksOUT.txt,n,%i),2,59)
- var %times = $gettok($read(ProHLer.NicksOUT.txt,n,%i),3,59)
- aline @ProHLer.SettingsCheck $ProHLer.C2(%name) $ProHLer.C1(=) $ProHLer.C1(%times)
- inc %i
- }
- aline $ProHLer.C3().code @ProHLer.SettingsCheck -----
- aline $ProHLer.C3().code @ProHLer.SettingsCheck Loading channels where you are HighLighted on:
- var %i = 1
- while (%i <= $lines(ProHLer.ChansOUT.txt)) {
- var %name $gettok($read(ProHLer.ChansOUT.txt,n,%i),2,59)
- var %times = $gettok($read(ProHLer.ChansOUT.txt,n,%i),3,59)
- aline @ProHLer.SettingsCheck $ProHLer.C2(%name) $ProHLer.C1(=) $ProHLer.C1(%times)
- inc %i
- }
- aline $ProHLer.C3().code @ProHLer.SettingsCheck -----
- aline $ProHLer.C3().code @ProHLer.SettingsCheck Setting variables:
- aline @ProHLer.SettingsCheck $ProHLer.C1(Setting var:) $ProHLer.C2($+(%,ProHLer.LastUpdate)) $ProHLer.C1(To) $ProHLer.C2($ctime)
- set %ProHLer.LastUpdate $ctime
- aline @ProHLer.SettingsCheck $ProHLer.C1(Setting var:) $ProHLer.C2($+(%,ProHLer.Version)) $ProHLer.C1(To) $ProHLer.C2($ProHLer.Version)
- set %ProHLer.Version $ProHLer.Version
- if (!%ProHLer.UpdateCheck.On) {
- window -u @ProHLer.SettingsCheck
- if ($input(Do you want ProHLer to check for a new version everytime you open the main window?,yqd,ProHLer - Question)) {
- aline @ProHLer.SettingsCheck $ProHLer.C1(Setting var:) $ProHLer.C2($+(%,ProHLer.UpdateCheck.On)) $ProHLer.C1(To) $ProHLer.C2($!true)
- set %ProHLer.UpdateCheck.On $true
- }
- else {
- aline @ProHLer.SettingsCheck $ProHLer.C1(Setting var:) $ProHLer.C2($+(%,ProHLer.UpdateCheck.On)) $ProHLer.C1(To) $ProHLer.C2($!false)
- set %ProHLer.UpdateCheck.On $false
- }
- window -o @ProHLer.SettingsCheck
- }
- aline $ProHLer.C3().code @ProHLer.SettingsCheck -----
- aline $ProHLer.C3().code @ProHLer.SettingsCheck Thank you for upgrading to ProHLer version " $+ $ProHLer.Version $+ " from version " $+ %OldVer $+ "!
- if (%oldUpdate) aline $ProHLer.C3().code @ProHLer.SettingsCheck Your last update as on $asctime(%OldUpdate) that was $ProHLer.Duration($calc($ctime - %OldUpdate)) ago!
- }
- else {
- if (%ProHLer.UpdateCheck.On) {
- ProHLer.UpdateCheck.Start ProHLer.UpdateCheck.Return2
- }
- }
- }
- else {
- noop $input(Thank you for installing ProHLer version " $+ $ProHLer.Version $+ "! $crlf $crlf Please wait patient while we set some settings!,oid,ProHLer - Info)
- window -xdok0g1 @ProHLer.SettingsCheck
- aline $ProHLer.C1().code @ProHLer.SettingsCheck <***>ProHLer HighLight detection script by: Marlinc<***>
- aline $ProHLer.C3().code @ProHLer.SettingsCheck Setting variables:
- aline @ProHLer.SettingsCheck $ProHLer.C1(Setting var:) $ProHLer.C2($+(%,ProHLer.LastUpdate)) $ProHLer.C1(To) $ProHLer.C2($ctime)
- set %ProHLer.LastUpdate $ctime
- aline @ProHLer.SettingsCheck $ProHLer.C1(Setting var:) $ProHLer.C2($+(%,ProHLer.Version)) $ProHLer.C1(To) $ProHLer.C2($ProHLer.Version)
- set %ProHLer.Version $ProHLer.Version
- window -u @ProHLer.SettingsCheck
- if ($input(Do you want ProHLer to check for a new version everytime you open the main window?,yqd,ProHLer - Question)) {
- aline @ProHLer.SettingsCheck $ProHLer.C1(Setting var:) $ProHLer.C2($+(%,ProHLer.UpdateCheck.On)) $ProHLer.C1(To) $ProHLer.C2($!true)
- set %ProHLer.UpdateCheck.On $true
- }
- else {
- aline @ProHLer.SettingsCheck $ProHLer.C1(Setting var:) $ProHLer.C2($+(%,ProHLer.UpdateCheck.On)) $ProHLer.C1(To) $ProHLer.C2($!false)
- set %ProHLer.UpdateCheck.On $false
- }
- if ($input(Do you want to use " $+ $me $+ " as a highlighter?,yqd,ProHLer - Question)) {
- aline @ProHLer.SettingsCheck $ProHLer.C1(Setting var:) $ProHLer.C2($+(%,ProHLer.Highlights)) $ProHLer.C1(To) $ProHLer.C2($me)
- set %ProHLer.Highlights $me
- }
- window -o @ProHLer.SettingsCheck
- aline $ProHLer.C3().code @ProHLer.SettingsCheck -----
- aline $ProHLer.C3().code @ProHLer.SettingsCheck Thank you for installing ProHLer version " $+ $ProHLer.Version $+ "!
- }
- dialog -mordv ProHLer.DMain ProHLer.DMain
- }
- alias ProHLer.DMain.Reload {
- ProHLer.Nicks.Filter
- ProHLer.Chans.Filter
- if ($dialog(ProHLer.DMain)) {
- did -ra ProHLer.DMain 31 $bytes($iif(%ProHLer.TotalHls isnum,%ProHLer.TotalHls,0),bd)
- did -ra ProHLer.DMain 37 $bytes($iif(%ProHLer.TotalHls isnum,$var(%ProHLer.Nicks.*,0),0),bd)
- did -ra ProHLer.DMain 39 $bytes($iif(%ProHLer.TotalHls isnum,$var(%ProHLer.Chans.*,0),0),bd)
- var %name $gettok($read(ProHLer.NicksOUT.txt,n,1),2,59)
- var %times = $gettok($read(ProHLer.NicksOUT.txt,n,1),3,59)
- did -ra ProHLer.DMain 33 $iif(%name,%name,None) $+ $chr(40) $+ $bytes($iif(%times,%times,0),bd) $+ $chr(41)
- var %chan $gettok($read(ProHLer.ChansOUT.txt,n,1),2,59)
- var %times = $gettok($read(ProHLer.ChansOUT.txt,n,1),3,59)
- did -ra ProHLer.DMain 35 $iif(%chan,%chan,None) $+ $chr(40) $+ $bytes($iif(%times,%times,0),bd) $+ $chr(41)
- did -ra ProHLer.DMain 41 $bytes($iif(%ProHLer.TotalNonHls isnum,%ProHLer.TotalNonHls,0),bd)
- did -h ProHLer.DMain 22
- did -h ProHLer.DMain 42
- did -h ProHLer.DMain 43
- did -ra ProHLer.DMain 43 $bytes($calc($iif(%ProHLer.TotalHls isnum,%ProHLer.TotalHls,0) / $iif(%ProHLer.Average.Day isnum,%ProHLer.Average.Day,0)),bd)
- did -ra ProHLer.DMain 55 Turn ProHLer $iif(%ProHLer.On,Off,On)
- }
- }
- alias ProHLer.DHLers.Reload {
- if ($dialog(ProHLer.DHLers)) {
- did -ra ProHLer.DHLers 31 None
- did -rm ProHLer.DHLers 33
- did -r ProHLer.DHLers 70
- did -r ProHLer.DHLers 71
- var %i = 1
- while (%i <= $numtok(%ProHLer.Highlights,59)) {
- did -a ProHLer.DHLers 70 %i
- did -a ProHLer.DHLers 71 $gettok(%ProHLer.Highlights,%i,59)
- inc %i
- }
- }
- }
- alias ProHLer.DNoHL.Reload {
- if ($dialog(ProHLer.DNoHL)) {
- did -ra ProHLer.DNoHL 31 None
- did -rm ProHLer.DNoHL 33
- did -r ProHLer.DNoHL 70
- did -r ProHLer.DNoHL 71
- var %i = 1
- while (%i <= $numtok(%ProHLer.NoHls,59)) {
- did -a ProHLer.DNoHL 70 %i
- did -a ProHLer.DNoHL 71 $gettok(%ProHLer.NoHls,%i,59)
- inc %i
- }
- }
- }
- alias ProHLer.DSettings.Reload {
- if ($dialog(ProHLer.DSettings)) {
- did -ra ProHLer.DSettings 50 $iif(%ProHLer.UpdateCheck.On,Disable,Enable) AutoUpdate
- }
- }
- alias ProHLer.Nicks.Filter {
- write -c ProHLer.NicksIN.txt
- write -c ProHLer.NicksOUT.txt
- var %i = 1
- while (%i <= $var(%ProHLer.Nicks.*,0)) {
- write ProHLer.NicksIN.txt $var(%ProHLer.Nicks.*,%i) $+ $chr(59) $+ $remove($var(%ProHLer.Nicks.*,%i),%,ProHLer.Nicks.) $+ $chr(59) $+ $eval($var(%ProHLer.Nicks.*,%i),2)
- inc %i
- }
- filter -fk ProHLer.NicksIN.txt ProHLer.Nicks.FilterGet *
- write -c ProHLer.NicksIN.txt
- }
- alias ProHLer.Nicks.FilterGet {
- var %data $1-
- tokenize 59 %data
- var %high $gettok($read(ProHLer.NicksOUT.txt,n,1),3,59)
- var %high $iif(%high,%high,0)
- if ($3 > %high) {
- write -il1 ProHLer.NicksOUT.txt %data
- }
- else {
- write ProHLer.NicksOUT.txt %data
- }
- }
- alias ProHLer.Chans.Filter {
- write -c ProHLer.ChansIN.txt
- write -c ProHLer.ChansOUT.txt
- var %i = 1
- while (%i <= $var(%ProHLer.Chans.*,0)) {
- write ProHLer.ChansIN.txt $var(%ProHLer.Chans.*,%i) $+ $chr(59) $+ $remove($var(%ProHLer.Chans.*,%i),%,ProHLer.Chans.) $+ $chr(59) $+ $eval($var(%ProHLer.Chans.*,%i),2)
- inc %i
- }
- filter -fk ProHLer.ChansIN.txt ProHLer.Chans.FilterGet *
- write -c ProHLer.ChansIN.txt
- }
- alias ProHLer.Chans.FilterGet {
- var %data $1-
- tokenize 59 %data
- var %high $gettok($read(ProHLer.ChansOUT.txt,n,1),3,59)
- var %high $iif(%high,%high,0)
- if ($3 > %high) {
- write -il1 ProHLer.ChansOUT.txt %data
- }
- else {
- write ProHLer.ChansOUT.txt %data
- }
- }
- alias ProHler.NoHL {
- if ($1) {
- var %i = 1
- while (%i <= $numtok(%ProHLer.NoHls,59)) {
- if ($gettok(%ProHLer.NoHls,%i,59) iswm $1) return $gettok(%ProHLer.NoHls,%i,59)
- inc %i
- }
- }
- else return %ProHLer.NoHls
- }
- alias ProHLer.Off {
- set %ProHLer.On $false
- echo -at $ProHLer.C1(ProHLer is now turned off!)
- }
- alias ProHLer.On {
- set %ProHLer.On $true
- echo -at $ProHLer.C1(ProHLer is now turned on!)
- }
- on ^*:TEXT:*:*: {
- if (%ProHLer.On) {
- var %hltext $replace($1-,$chr(59),-)
- var %hlplace $iif($chan,$chan,$nick)
- var %i = 1
- while (%i <= $numtok(%ProHLer.Highlights,59)) {
- var %hler $eval($gettok(%ProHLer.Highlights,%i,59),2)
- if (%hler isin %hltext) {
- if ($ProHler.NoHL($nick)) {
- inc %ProHLer.TotalNonHls
- }
- else {
- inc %ProHLer.TotalHls
- inc %ProHLer.Nicks. $+ $nick
- set %ProHLer.Last.Nick $nick
- set %ProHLer.Last.Time $ctime
- if (%ProHLer.Date.Day != $date(dd-mm-yy)) {
- set %ProHLer.Date.Day $date(dd-mm-yy)
- inc %ProHLer.Average.Day
- }
- var %i = 1
- while (%i <= $cnick(0)) {
- if ($cnick(%i) iswm $nick) { var %c $cnick(%i).color | break }
- elseif (($nick isop $chan) && (@ isin $cnick(%i).modes)) { var %c $cnick(%i).color | break }
- elseif (($nick ishop $chan) && (% isin $cnick(%i).modes)) { var %c $cnick(%i).color | break }
- elseif (($nick isvoice $chan) && (+ isin $cnick(%i).modes)) { var %c $cnick(%i).color | break }
- elseif (($nick isreg $chan) && ($cnick(%i).nomode) || (!$chan)) { var %c $cnick(%i).color | break }
- inc %i
- }
- if (!%c) var %c $color(text)
- if ($nick isop $chan) { var %cc @ }
- elseif ($nick ishop $chan) { var %cc % }
- elseif ($nick isvoice $chan) { var %cc + }
- echo -tmg $iif($chan,$chan,$nick) $+(< ,%c,%cc,$nick, >) $ProHLer.C1 $+ $replace($strip(%hltext),%hler,$ProHLer.C2(%hler) $+ $ProHLer.C1)
- if ($chan) inc %ProHLer.Chans. $+ $chan
- if ($window(@ProHLer. $+ $nick)) {
- rline $ProHLer.C2().code @ProHLer. $+ $nick 2 --- $+ $nick HighLighted you $bytes($eval($+(%,ProHLer.Nicks.,$nick),2),bd) time $+ $iif($eval($+(%,ProHLer.Nicks.,$nick),2) != 1,s) $+ !
- aline $ProHLer.C3().code @ProHLer. $+ $nick $ProHLer.C1(HL) $+ $chr(40) $+ $bytes($calc($line(@ProHLer. $+ $nick,0) - 1),bd) - %hlplace - $gmt(HH:nn:ss) $+ $chr(41) $+ $+(< ,%c,%cc,$nick, > 03) $+ : $ProHLer.C1 $+ $replace($strip(%hltext),%hler,$ProHLer.C4(%hler) $+ $ProHLer.C1)
- }
- else {
- window -k0l35n2vxz @ProHLer. $+ $nick
- aline -al @ProHLer. $+ $nick Add to NonHighlighting Nicknames
- aline -al @ProHLer. $+ $nick Open ProHLer
- aline -al @ProHLer. $+ $nick Close Window
- aline -al @ProHLer. $+ $nick Close all ProHLer Windows
- renwin @ProHLer. $+ $nick @ProHLer. $+ $nick HighLight info( $+ $nick $+ )
- aline $ProHLer.C1().code @ProHLer. $+ $nick <***>ProHLer HighLight detection script by: Marlinc - Version $ProHLer.Version $+ <***>
- aline $ProHLer.C2().code @ProHLer. $+ $nick --- $+ $nick HighLighted you $bytes($eval($+(%,ProHLer.Nicks.,$nick),2),bd) time $+ $iif($eval($+(%,ProHLer.Nicks.,$nick),2) != 1,s) $+ !
- aline $ProHLer.C3().code @ProHLer. $+ $nick $ProHLer.C3(HL) $+ $chr(40) $+ 1 - %hlplace - $gmt(HH:nn:ss) $+ $chr(41) $+ $+(< ,%c,%cc,$nick, > $+ $ProHLer.C2) $+ : $ProHLer.C1 $+ $replace($strip(%hltext),%hler,$ProHLer.C4(%hler) $+ $ProHLer.C1)
- }
- ProHLer.DMain.Reload
- noop $tip(ProHLer. $+ $nick $+ . $+ $ticks,$ProHLer.C1(Pro) $+ $ProHLer.C2(HL) $+ $ProHLer.C1(er) $+ :,$ProHLer.C2($nick) $ProHLer.C1(HighLighted you!) $crlf $ProHLer.C1(Network:) $ProHLer.C2($network) $iif($chan,$crlf $ProHLer.C1(Channel:) $ProHLer.C2($chan)) $crlf $ProHLer.C1(Text:) $ProHLer.C2($replace($strip(%hltext),%hler, 05 $+ %hler $+ 03),10)))
- flash -b5 ProHLer: $nick HighLighted you!
- window -g2 %hlplace
- haltdef
- break
- }
- }
- inc %i
- }
- }
- }
- dialog -l ProHLer.DMain {
- ;ID Info:
- ;Boxes 20-30
- ;Lables(Text) 30-50
- ;Buttons 50-70
- title "ProHLer - Main(Loading...)"
- size -1 -1 320 100
- option dbu
- box "Status" , 20, 5 5 150 75
- box "Settings" , 21, 155 5 150 85
- box "Status" , 22, 5 5 150 85
- text "Total HighLights:" , 30, 10 15 75 10
- text "Loading..." , 31, 80 15 70 10
- text "Most Highlights(Nick):" , 32, 10 25 75 10
- text "Loading..." , 33, 80 25 70 10
- text "Most Highlights(Chan):" , 34, 10 35 75 10
- text "Loading..." , 35, 80 35 70 10
- text "Different nicks:" , 36, 10 45 75 10
- text "Loading..." , 37, 80 45 70 10
- text "Different channels:" , 38, 10 55 75 10
- text "Loading..." , 39, 80 55 70 10
- text "Ignored HighLights:" , 40, 10 65 75 10
- text "Loading..." , 41, 80 65 70 10
- text "Average per day:" , 42, 10 75 75 10
- text "Loading..." , 43, 80 75 70 10
- button "Close ProHLer Windows" , 50, 160 25 80 10
- button "Reset Data!" , 51, 160 35 80 10
- button "HighLighters!" , 52, 160 45 80 10
- button "NonHighLighting nicknames!" , 53, 160 55 80 10
- button "Show extra stats" , 54, 160 65 80 10
- button "Turn ProHLer ..." , 55, 160 15 80 10
- button "Settings" , 56, 160 75 80 10
- }
- on *:dialog:ProHLer.DMain:init:0: {
- dialog -t $dname ProHLer(Version $ProHLer.Version $+ ) - Main
- ProHLer.DMain.Reload
- }
- on *:dialog:ProHLer.DMain:sclick:50: {
- dialog -n $dname
- if ($window(@ProHLer.SettingsCheck)) window -c @ProHLer.SettingsCheck
- if ($input(Are you sure you want to close all the ProHLer windows?,yqd,ProHLer - Question)) {
- var %total $window(@ProHLer.*,0)
- close -@ProHLer.*
- dialog -x $dname
- if ($dialog(ProHLer.DNoHL)) dialog -x $v1
- if ($dialog(ProHLer.DHLers)) dialog -x $v1
- if ($dialog(ProHLer.DResetStats)) dialog -x $v1
- if ($dialog(ProHLer.DSettings)) dialog -x $v1
- noop $input(All ProHLer windows are closed! Total: %total,oid,ProHLer - Info)
- }
- }
- on *:dialog:ProHLer.DMain:sclick:51: {
- if ($window(@ProHLer.SettingsCheck)) window -c @ProHLer.SettingsCheck
- dialog -mordv ProHLer.DResetStats ProHLer.DResetStats
- }
- on *:dialog:ProHLer.DMain:sclick:52: {
- if ($window(@ProHLer.SettingsCheck)) window -c @ProHLer.SettingsCheck
- dialog -mordv ProHLer.DHLers ProHLer.DHLers
- }
- on *:dialog:ProHLer.DMain:sclick:53: {
- if ($window(@ProHLer.SettingsCheck)) window -c @ProHLer.SettingsCheck
- dialog -mordv ProHLer.DNoHL ProHLer.DNoHL
- }
- on *:dialog:ProHLer.DMain:sclick:54: {
- if ($did(20).visible) {
- did -h $dname 20
- did -v $dname 22
- did -v ProHLer.DMain 42
- did -v ProHLer.DMain 43
- did -ra $dname $did Hide extra stats
- }
- else {
- did -v $dname 20
- did -h $dname 22
- did -h ProHLer.DMain 42
- did -h ProHLer.DMain 43
- did -ra $dname $did Show extra stats
- }
- }
- on *:dialog:ProHLer.DMain:sclick:55: {
- if (%ProHLer.On) {
- ProHLer.Off
- did -ra ProHLer.DMain 55 Turn ProHLer On
- }
- else {
- ProHLer.On
- did -ra ProHLer.DMain 55 Turn ProHLer Off
- }
- }
- on *:dialog:ProHLer.DMain:sclick:56: {
- if ($window(@ProHLer.SettingsCheck)) window -c @ProHLer.SettingsCheck
- dialog -mordv ProHLer.DSettings ProHLer.DSettings
- }
- on *:dialog:ProHLer.DMain:close:0: {
- if ($window(@ProHLer.SettingsCheck)) window -c @ProHLer.SettingsCheck
- }
- dialog -l ProHLer.DHLers {
- ;ID Info:
- ;Boxes 20-30
- ;Lables(Text&Edit) 30-50
- ;Buttons 50-70
- ;Lists 70-80
- title "ProHLer - HighLighters(Loading...)"
- size -1 -1 270 170
- option dbu
- box "HighLighter Editor" , 20, 5 5 250 60
- box "HighLighters" , 21, 5 65 250 85
- text "Nr:" , 30, 10 15 50 10
- text "Loading..." , 31, 80 15 50 10
- text "Edit:" , 32, 10 25 50 10
- edit "Loading..." , 33, 77 25 150 10
- text "Things like $me or $mnick are allowd!" , 34, 10 37 100 20
- list 70, 10 75 10 60
- list 71, 77 75 150 60
- button "Delete Selected" , 50, 10 135 80 10
- button "Add one" , 51, 90 135 80 10
- button "Save" , 52, 10 45 80 10
- button "Save all / Exit" , 53, 5 155 80 10
- }
- on *:dialog:ProHLer.DHLers:init:0: {
- if ($dialog(ProHLer.DMain)) dialog -n ProHLer.DMain
- ProHLer.DHLers.Reload
- dialog -t $dname ProHLer(Version $ProHLer.Version $+ ) - HighLighters
- }
- on *:dialog:ProHLer.DHLers:sclick:50: {
- dialog -n $dname
- if ($did(71).sel) {
- var %nr $did(71).sel
- var %text $did(71).seltext
- if ($input(Are you sure you want to delete the folowing HighLighter: $+ $crlf $+ Nr: %nr $+ $crlf $+ Text: %text,yqd,ProHLer - Question)) {
- did -d $dname 70 %nr
- did -d $dname 71 %nr
- var %i = 1
- while (%i <= $did(70).lines) {
- did -o $dname 70 %i %i
- inc %i
- }
- did -ra $dname 31 None
- did -rma $dname 33
- }
- }
- else {
- noop $input(There is no HighLighter selected!,oid,ProHLer - Info)
- }
- dialog -o $dname
- }
- on *:dialog:ProHLer.DHLers:sclick:51: {
- dialog -n $dname
- var %nr $calc($did(70).lines + 1)
- if (%nr <= 30) {
- did -a $dname 70 %nr
- did -a $dname 71 New HighLighter: %nr
- did -c $dname 70 %nr
- did -c $dname 71 %nr
- did -ra $dname 31 $did(70).sel
- did -ra $dname 33 $did(71).seltext
- did -fn $dname 33
- }
- else {
- noop $input(Sorry we only accept 30 HighLighters!,oid,ProHLer - Info)
- }
- dialog -o $dname
- }
- on *:dialog:ProHLer.DHLers:sclick:52: {
- dialog -n $dname
- if ($did(71).sel) {
- var %nr $did(31).text
- var %text $did(33).text
- did -o $dname 70 %nr %nr
- did -o $dname 71 %nr %text
- did -c $dname 70 %nr
- did -c $dname 71 %nr
- }
- else {
- noop $input(There is no HighLighter selected!,oid,ProHLer - Info)
- }
- dialog -o $dname
- }
- on *:dialog:ProHLer.DHLers:sclick:53: {
- dialog -n $dname
- set %ProHLer.Highlights $didtok($dname,71,59)
- noop $input(Your HighLighters are saved!,oid,ProHLer - Info)
- dialog -x $dname
- if ($dialog(ProHLer.DMain)) dialog -o ProHLer.DMain
- }
- on *:dialog:ProHLer.DHLers:sclick:70: {
- did -ra $dname 31 $did($did).sel
- did -ran $dname 33 $did(71,$did($did).sel).text
- did -c $dname 71 $did($did).sel
- }
- on *:dialog:ProHLer.DHLers:sclick:71: {
- did -ra $dname 31 $did($did).sel
- did -ran $dname 33 $did($did).seltext
- did -c $dname 70 $did($did).sel
- }
- on *:dialog:ProHLer.DHLers:close:0: {
- if ($didtok($dname,71,59) != %ProHLer.Highlights) {
- if ($input(You made some changes! Do you want to save them?,yqd,ProHLer - Question)) {
- set %ProHLer.Highlights $didtok($dname,71,59)
- noop $input(Your HighLighters are saved!,oid,ProHLer - Info)
- }
- }
- if ($dialog(ProHLer.DMain)) dialog -o ProHLer.DMain
- }
- dialog -l ProHLer.DNoHL {
- ;ID Info:
- ;Boxes 20-30
- ;Lables(Text&Edit) 30-50
- ;Buttons 50-70
- ;Lists 70-80
- title "ProHLer - NonHighLighting nicknames(Loading...)"
- size -1 -1 300 170
- option dbu
- box "Nickname Editor" , 20, 5 5 250 60
- box "Nicknames" , 21, 5 65 250 85
- text "Nr:" , 30, 10 15 50 10
- text "Loading..." , 31, 80 15 50 10
- text "Edit:" , 32, 10 25 50 10
- edit "Loading..." , 33, 77 25 150 10
- text "Wildcards(*) are allowed at nicknames!" , 34, 10 37 100 20
- list 70, 10 75 10 60
- list 71, 77 75 150 60
- button "Delete Selected" , 50, 10 135 80 10
- button "Add one" , 51, 90 135 80 10
- button "Save" , 52, 10 45 80 10
- button "Save all / Exit" , 53, 5 155 80 10
- }
- on *:dialog:ProHLer.DNoHL:init:0: {
- if ($dialog(ProHLer.DMain)) dialog -n ProHLer.DMain
- ProHLer.DNoHL.Reload
- dialog -t $dname ProHLer(Version $ProHLer.Version $+ ) - NonHighLight nicknames
- if (%proHler.DNoHL.nick) {
- dialog -n $dname
- if (!$didwm($dname,71,%proHler.DNoHL.nick)) {
- var %nr $calc($did(70).lines + 1)
- if (%nr <= 40) {
- did -a $dname 70 %nr
- did -a $dname 71 %proHler.DNoHL.nick
- did -c $dname 70 %nr
- did -c $dname 71 %nr
- did -ra $dname 31 $did(70).sel
- did -ranf $dname 33 $did(71).seltext
- }
- else {
- noop $input(Sorry we only accept 40 nicknames!,oid,ProHLer - Info)
- }
- }
- else {
- noop $input(The nickname " $+ %proHler.DNoHL.nick $+ " is already at your NonHighLighting nickname list! $+ $crlf $+ At nr: $didwm($dname,71,%proHler.DNoHL.nick),oid,ProHLer - Info)
- dialog -x $dname
- }
- dialog -o $dname
- unset %proHler.DNoHL.nick
- }
- }
- on *:dialog:ProHLer.DNoHL:sclick:50: {
- dialog -n $dname
- if ($did(71).sel) {
- var %nr $did(71).sel
- var %text $did(71).seltext
- if ($input(Are you sure you want to delete the folowing nickname: $+ $crlf $+ Nr: %nr $+ $crlf $+ Text: %text,yqd,ProHLer - Question)) {
- did -d $dname 70 %nr
- did -d $dname 71 %nr
- var %i = 1
- while (%i <= $did(70).lines) {
- did -o $dname 70 %i %i
- inc %i
- }
- did -ra $dname 31 None
- did -ram $dname 33
- }
- }
- else {
- noop $input(There is no nickname selected!,oid,ProHLer - Info)
- }
- dialog -o $dname
- }
- on *:dialog:ProHLer.DNoHL:sclick:51: {
- dialog -n $dname
- var %nr $calc($did(70).lines + 1)
- if (%nr <= 40) {
- did -a $dname 70 %nr
- did -a $dname 71 Nickname %nr
- did -c $dname 70 %nr
- did -c $dname 71 %nr
- did -ra $dname 31 $did(70).sel
- did -rafn $dname 33 $did(71).seltext
- }
- else {
- noop $input(Sorry we only accept 40 nicknames!,oid,ProHLer - Info)
- }
- dialog -o $dname
- }
- on *:dialog:ProHLer.DNoHL:sclick:52: {
- dialog -n $dname
- if ($did(71).sel) {
- var %nr $did(31).text
- var %text $did(33).text
- did -o $dname 70 %nr %nr
- did -o $dname 71 %nr %text
- did -c $dname 70 %nr
- did -c $dname 71 %nr
- }
- else {
- noop $input(There is no nickname selected!,oid,ProHLer - Info)
- }
- dialog -o $dname
- }
- on *:dialog:ProHLer.DNoHL:sclick:53: {
- dialog -n $dname
- set %ProHLer.NoHls $didtok($dname,71,59)
- var %i = 1
- while (%i <= $numtok(%ProHLer.NoHls,59)) {
- if ($window(@ProHLer. $+ $gettok(%ProHLer.NoHls,%i,59))) window -c @ProHLer. $+ $gettok(%ProHLer.NoHls,%i,59))
- inc %i
- }
- noop $input(Your non highlighting nicknames are saved!,oid,ProHLer - Info)
- dialog -x $dname
- if ($dialog(ProHLer.DMain)) dialog -o ProHLer.DMain
- }
- on *:dialog:ProHLer.DNoHL:sclick:70: {
- did -ra $dname 31 $did($did).sel
- did -ran $dname 33 $did(71,$did($did).sel).text
- did -c $dname 71 $did($did).sel
- }
- on *:dialog:ProHLer.DNoHL:sclick:71: {
- did -ra $dname 31 $did($did).sel
- did -ran $dname 33 $did($did).seltext
- did -c $dname 70 $did($did).sel
- }
- on *:dialog:ProHLer.DNoHL:close:0: {
- if ($didtok($dname,71,59) != %ProHLer.NoHls) {
- if ($input(You made some changes! Do you want to save them?,yqd,ProHLer - Question)) {
- set %ProHLer.NoHls $didtok($dname,71,59)
- noop $input(Your non highlighting nicknames are saved!,oid,ProHLer - Info)
- }
- }
- if ($dialog(ProHLer.DMain)) dialog -o ProHLer.DMain
- }
- dialog -l ProHLer.DResetStats {
- ;ID Info:
- ;Boxes 20-30
- ;Lables(Text&Edit) 30-50
- ;Buttons 50-70
- ;Lists 70-80
- title "ProHLer - Reseting(Loading...)"
- size -1 -1 120 90
- option dbu
- box "Reset" , 20, 5 5 90 60
- button "Reset Stats(nicknames)" , 50, 10 15 80 10
- button "Reset Stats(Channels)" , 51, 10 25 80 10
- button "Reset All ignored HighLights" , 52, 10 35 80 10
- button "Reset All HighLight stats" , 53, 10 45 80 10
- button "Exit" , 54, 5 70 80 10
- }
- on *:dialog:ProHLer.DResetStats:init:0: {
- if ($dialog(ProHLer.DMain)) dialog -n ProHLer.DMain
- dialog -t $dname ProHLer(Version $ProHLer.Version $+ ) - Reseting
- }
- on *:dialog:ProHLer.DResetStats:sclick:50: {
- dialog -n $dname
- if ($input(Are you sure you want to reset the nickname HighLight stats?,yqd,ProHLer - Question)) {
- var %total $bytes($iif(%ProHLer.TotalHls isnum,$var(%ProHLer.Nicks.*,0),0),bd)
- unset %ProHLer.Nicks.*
- noop $input(All Nickname HighLight stats are reseted! Total: %total,oid,ProHLer - Info)
- ProHLer.DMain.Reload
- }
- dialog -o $dname
- }
- on *:dialog:ProHLer.DResetStats:sclick:51: {
- dialog -n $dname
- if ($input(Are you sure you want to reset the Channel HighLight stats?,yqd,ProHLer - Question)) {
- var %total $bytes($iif(%ProHLer.TotalHls isnum,$var(%ProHLer.Chans.*,0),0),bd)
- unset %ProHLer.Chans.*
- noop $input(All Channel HighLight stats are reseted! Total: %total,oid,ProHLer - Info)
- ProHLer.DMain.Reload
- }
- dialog -o $dname
- }
- on *:dialog:ProHLer.DResetStats:sclick:52: {
- dialog -n $dname
- if ($input(Are you sure you want to reset the ignored HighLight stats?,yqd,ProHLer - Question)) {
- unset %ProHLer.TotalNonHls
- noop $input(Your ignored HighLight stats are reseted!,oid,ProHLer - Info)
- ProHLer.DMain.Reload
- }
- dialog -o $dname
- }
- on *:dialog:ProHLer.DResetStats:sclick:53: {
- dialog -n $dname
- if ($input(Are you sure you want to reset the all HighLight stats?,yqd,ProHLer - Question)) {
- var %total $bytes($iif(%ProHLer.TotalHls isnum,$var(%ProHLer.Nicks.*,0),0),bd)
- var %totalc $bytes($iif(%ProHLer.TotalHls isnum,$var(%ProHLer.Chans.*,0),0),bd)
- var %totaltot $iif(%ProHLer.TotalHls isnum,%ProHLer.TotalHls,0)
- var %totaligtot $iif(%ProHLer.TotalNonHls isnum,%ProHLer.TotalNonHls,0)
- unset %ProHLer.Nicks.*
- unset %ProHLer.Chans.*
- unset %ProHLer.TotalHls
- unset %ProHLer.TotalNonHls
- unset %ProHLer.Date.Day
- unset %ProHLer.Average.Day
- unset %ProHLer.Last.Nick
- unset %ProHLer.Last.Time
- noop $input(All HighLight stats are reseted! Total(Nicknames): %total $crlf Total(Channels): %totalc $crlf Total(All HighLights): %totaltot $crlf Total(All Ignored HighLights): %totaligtot,oid,ProHLer - Info)
- ProHLer.DMain.Reload
- }
- dialog -o $dname
- }
- on *:dialog:ProHLer.DResetStats:sclick:54: {
- dialog -x $dname
- ProHLer.DMain.Reload
- if ($dialog(ProHLer.DMain)) dialog -o ProHLer.DMain
- }
- on *:dialog:ProHLer.DResetStats:close:0: {
- ProHLer.DMain.Reload
- if ($dialog(ProHLer.DMain)) dialog -o ProHLer.DMain
- }
- dialog -l ProHLer.DSettings {
- ;ID Info:
- ;Boxes 20-30
- ;Lables(Text&Edit) 30-50
- ;Buttons 50-70
- ;Lists 70-80
- title "ProHLer - Settings(Loading...)"
- size -1 -1 120 90
- option dbu
- box "Settings" , 20, 5 5 90 60
- button "... UpdateCheck" , 50, 10 15 80 10
- button "Exit" , 54, 5 70 80 10
- }
- on *:dialog:ProHLer.DSettings:init:0: {
- if ($dialog(ProHLer.DMain)) dialog -n ProHLer.DMain
- ProHLer.DSettings.Reload
- dialog -t $dname ProHLer(Version $ProHLer.Version $+ ) - Settings
- }
- on *:dialog:ProHLer.DSettings:sclick:50: {
- dialog -n $dname
- if (%ProHLer.UpdateCheck.On) {
- set %ProHLer.UpdateCheck.On $false
- did -ra ProHLer.DSettings 50 Enable UpdateCheck
- noop $input(ProHLer will nolonger check for a new version if you open the main window,oid,ProHLer - Info)
- }
- else {
- set %ProHLer.UpdateCheck.On $true
- did -ra ProHLer.DSettings 50 Disable UpdateCheck
- noop $input(ProHLer will now check for a new version everytime you open the main window,oid,ProHLer - Info)
- }
- dialog -o $dname
- }
- on *:dialog:ProHLer.DSettings:sclick:54: {
- dialog -x $dname
- ProHLer.DMain.Reload
- if ($dialog(ProHLer.DMain)) dialog -o ProHLer.DMain
- }
- on *:dialog:ProHLer.DSettings:close:0: {
- ProHLer.DMain.Reload
- if ($dialog(ProHLer.DMain)) dialog -o ProHLer.DMain
- }
- Query control
- dialog GBQC {
- title "GB Query Control"
- size -1 -1 172 54
- option dbu
- button "Accept", 1, 24 37 37 12
- button "Decline", 2, 67 37 37 12
- button "Ignore", 3, 110 37 37 12
- text "", 4, 24 5 123 28
- text "V1.0", 5, 159 46 13 8, disable
- }
- menu Status,Channel,MenuBar,Query {
- -
- $iif($group(#qc) == on,$style(1)Disable,$style(0)Enable) Use Query Control: {
- var %status = $iif($group(#qc) == on,Disable,Enable)
- $+(.,%status) #qc
- echo -ta 14Query control has been 04 $+(%status,d, 14.)
- }
- -
- }
- menu Query {
- $iif($hget(GBQC,$address($active,3)),$style(1),$style(0)) Auto-Accept queries from $active: {
- var %status = $iif($hget(GBQC,$address($active,3)) = 1,Del,Add)
- $+(h,%status) GBQC $address($active,3) 1
- echo -ta $+( 04,$active) 14 has been 04 $iif(%status = del,deleted from,added to) 14Auto-Accept.
- }
- }
- #qc on
- on *:OPEN:?:{
- %QC.nick.address = $address($nick,3)
- %QC.nick = $nick
- if ($hget(GBQC,%QC.nick.address)) {
- .msg $nick PM Auto-Accepted. $iif($away,I may not reply as I am currently away.)
- echo -ta 14Query Control: 04Auto-Accept from ' $+ $nick $+ '.
- }
- elseif (!$hget(GBQC,%QC.nick.address)) {
- if ($dialog(GBQC)) { .msg $nick I currently have a que of PMs. If this is important please try again later or send me a memo. /ms send $me ¬yourmessage¬ | halt }
- window -h $nick
- .msg $nick Please wait for your query to be accepted/declined.
- dialog -mo GBQC GBQC
- did -ra GBQC 4 %QC.nick ( $+ %QC.nick.address $+ ) has PMed you. Do you want to accept, decline or ignore?
- }
- }
- on *:exit:{
- hsave -s GBQC GBQC.hsh
- }
- on *:start:{
- hmake GBQC 100
- if ($exists(GBQC.hsh)) {
- hload -s GBQC GBQC.hsh
- }
- }
- #qc end
- on *:dialog:GBQC:sclick:1:{
- window -w %QC.nick
- window -a %QC.nick
- .msg %QC.nick I have accepted you PM. You do not have to repeat your last message as I can see it already. $iif($away,I may not reply as I am currently away.)
- dialog -x GBQC
- if ($?!"Do you want to add this user ( $+ %QC.nick $+ ) to your auto-accept list?") addexc %QC.nick.address
- unset %QC.nick
- }
- on *:dialog:GBQC:sclick:2:{
- .msg %QC.nick I have declined your Private Message. A 2 minute ignore has been put on your nick for private messages to prevent abuse.
- .ignore -pu120 %QC.nick.address
- close -m %QC.nick
- dialog -x GBQC
- unset %QC.*
- }
- on *:dialog:GBQC:sclick:3:{
- msg %QC.nick Private Message Declined. You have been ignored.
- .ignore -pu1200 %QC.nick.address
- close -m %QC.nick
- dialog -x GBQC
- unset %QC.*
- }
- alias addexc {
- if (!$hget(GBQC)) hmake GBQC 100
- hadd GBQC %QC.nick.address 1
- echo -ta 14Query Control: 04 Added ' $+ $address(%QC.nick,3) $+ ' to auto-accept list.
- }
- alias clearbans {
- if ($1 isnum) && ($chan) { var %c = $chan | var %d = $1 }
- elseif ($2 isnum) && ($me ison $1) { var %c = $1 | var %d = $2 }
- elseif ($1 isnum) && ($me ison $2) { var %c = $2 | var %d = $1 }
- else { echo $color(info) -at Error: no valid channel or number of days given. | halt }
- mode %c +b
- echo $color(info) -at Checking the %c bans list for bans older then %d days, please wait..
- .timer 1 1 clearbanslist %c %d
- }
- alias -l clearbanslist {
- var %c = $1
- var %bu
- var %d = $2
- var %d.ct = $calc( $ctime - ( %d * 86400 ) )
- var %bt = $ibl(%c,0)
- var %bc = 1
- while (%bc <= %bt) {
- if ($ibl(%c,%bc).ctime <= %d.ct) {
- if (%bo) {
- if ($numtok(%bo,32) >= $modespl) { mode # $+(-,$str(b,$modespl)) %bo | var %bo = $ibl(%c,%bc) }
- else { var %bo = %bo $ibl(%c,%bc) }
- }
- else { var %bo = $ibl(%c,%bc) }
- inc %bu
- }
- inc %bc
- }
- if (%bo) { mode # $+(-,$str(b,$numtok(%bo,32))) %bo }
- .timer 1 1 echo $color(info) -at Done cleaning the ban list in %c $+ . Out of %bt bans, $iif(%bu,%bu,no) bans were older then %d days.
- }
- Theme
- on *:START:{
- .timestamp -f 12» 1 ddd 12| 14HH 12 : 14nn 12 : 14ss 12 « | .timestamp on
- }
- alias -l levelc { return $iif($1 isop $chan, 4@,$iif($1 === ChanServ, 4@,$iif($1 ishop $chan, 8%, 2+ )))) }
- ; $iif($1 isvoice $chan,;;
- on ^*:TEXT:*:#:{
- haltdef
- echo $+ $iif($highlighted($1-),$chr(32) $+ -m) $chan $iif($highlighted($1-), 14[¬ 4HL¬ 14] $+ $chr(32)) $+ $timestamp ( $+ $levelc($nick) $+ 14 $+ $nick $+ ) $1-
- }
- on ^*:RAWMODE:#:{
- haltdef
- echo -t $chan $alert ChanMode : $levelc($nick) $+ 14 $+ $nick sets 14 [ 12 $+ $1 $+ 14 ] 12 $iif($2,$2-)
- }
- on ^*:NICK:{
- haltdef | var %x $comchan($newnick,0) | while (%x) {
- echo $comchan($newnick,%x) $timestamp $alert Nick : 14 $nick $+ $iif($newnick isop $comchan($newnick,%x), 4»»»,$iif($newnick ishop $comchan($newnick,%x), 8»»»,$iif($newnick isvoice $comchan($newnick,%x), 2»»», »»»))) $+ 14 $newnick
- dec %x
- }
- }
- on ^*:JOIN:#:{
- haltdef
- if ($nick != $me) { echo -t $chan $alert Joins : 14 $nick ( 14 $+ $replace($address,@, @ 14,., 12 . 14) $+ ) }
- else { echo -t $chan | echo -t $chan $alert Now talking in 12 # $+ . }
- }
- on ^*:PART:#:{
- haltdef
- if ($nick != $me) {
- echo -t $chan $alert Parts : $levelc($nick) $+ 14 $+ $nick ( 14 $+ $replace($address,@, @ 14,., 12 . 14) $+ ) 14 $1-
- }
- }
- on ^*:QUIT:{
- haltdef | var %x $comchan($nick,0) | while (%x) {
- echo -t $comchan($nick,%x) $alert Quits : $iif($nick isop $comchan($nick,%x), 4@,$iif($nick ishop $comchan($nick,%x), 8%,$iif($nick isvoice $comchan($nick,%x), 12+))) $+ 14 $+ $nick ( 14 $+ $replace($address,@, @ 14,., 12 . 14) $+ ) 12: 14 $1-
- dec %x
- }
- }
- on *:INPUT:#:{
- if (/* !iswm $1) || ($ctrlenter) {
- haltdef | .msg # $1- | echo -at ( $+ $levelc($me) $+ 14 $+ $me $+ ) $1-
- }
- }
- on ^*:ACTION:*:#:{
- haltdef
- echo $+ $iif($highlighted($1-),$chr(32) $+ -m) $chan $iif($highlighted($1-), 14[¬ 4HL¬ 14] $+ $chr(32)) $+ $timestamp 13* ( $+ $levelc($nick) $+ 14 $+ $nick $+ ) 13 $1-
- }
- on ^*:NOTICE:*:?:{
- haltdef | var %x $comchan($nick,0) | while (%x) {
- echo $comchan($nick,%x) 12« 1[ 12N 1] $+ $timestamp [ $+ $iif($nick isop $comchan($nick,%x), 4@,$iif($nick ishop $comchan($nick,%x), 8%,$iif($nick isvoice $comchan($nick,%x), 12+))) $+ 14 $+ $nick ( 14 $+ $replace($address,@, @ 14,., 12 . 14) $+ )] $1-
- dec %x
- }
- if ($nick !ison $active) {
- echo -a 12« 1[ 12N 1] $+ $timestamp [ $+ $levelc($nick) $+ 14 $+ $nick ( 14 $+ $replace($address,@, @ 14,., 12 . 14) $+ )] $1-
- }
- if ($active != Status window) {
- echo 12« 1[ 12N 1] $+ $timestamp [ 14 $+ $nick ( 14 $+ $replace($address,@, @ 14,., 12 . 14) $+ )] $1-
- }
- }
- on ^*:NOTICE:*:#:{
- haltdef
- echo $chan 12« 1[ 12N 1] $+ $timestamp 4 ( 14 $+ $chan $+ 4 ) [ $+ $levelc($nick) $+ 14 $+ $replace($nick,., 12 . 14) ( 14 $+ $iif(@ isin $replace($address,@, @ 14,., 12 . 14),$v2,Server) $+ )] $1-
- }
- on ^*:KICK:#:{
- haltdef
- if ($knick != $me) {
- echo -t $chan $alert Kicks : [ $+ $levelc($knick) $+ 14 $+ $knick ( 14 $+ $replace($gettok($address($knick,5),2,33),@, @ 14,., 12 . 14) $+ )] was kicked by [ $+ $levelc($nick) $+ 14 $+ $nick $+ ] 14 $1- }
- else {
- echo -t $alert Kicks : 12You were kicked from 4 # by [ $+ $levelc($nick) $+ 14 $+ $nick ( 14 $+ $replace($address,@, @ 14,., 12 . 14) $+ )] 14 $1-
- }
- }
- on ^*:TEXT:*:?:{
- query $nick | haltdef | echo $nick 14[ 12PM 14] $timestamp ( 14 $+ $nick $+ ) $1-
- }
- on *:INPUT:?:{
- if (/* !iswm $1) || ($ctrlenter) {
- haltdef | .msg $active $1- | echo -a 14[ 12PM 14] $timestamp ( 14 $+ $me $+ ) $1-
- }
- }
- on ^*:SNOTICE:*:{ echo ? $+ $timestamp ( 14 $+ $replace($nick,., 12 . 14) $+ ) $1- | haltdef }
- on ^*:TOPIC:#:{ haltdef | echo -t $chan $alert Topic Change [ $+ $levelc($nick) $+ 14 $+ $nick $+ ] : $1- }
- on ^*:INVITE:#:{ haltdef | echo -t $alert Invite : 12 $nick ( 14 $+ $replace($address,@, @ 14,., 12. 14) $+ ) invites you to join 12 $chan $+ . }
- on ^*:ACTION:*:?:{ haltdef | echo $nick 14[ 12PM 14] $timestamp 13* ( 14 $+ $nick $+ ) 13 $1- }
- on ^*:USERMODE:{ echo -t UserMode : You changed: ( 14 $+ $1- $+ ) | haltdef }
- alias notice { if ($2) { .notice $1- | echo -q ? $+ $timestamp to ( 14 $+ $1 $+ ) $2- } }
- alias query { query $1 | if ($2) { .msg $1- | echo -a 14[ 12PM 14] $timestamp ( 14 $+ $me $+ ) $2- } }
- alias me {
- if ($1) {
- .describe $active $1-
- if ($chan) { echo -ta 13* ( $+ $levelc($me) $+ 14 $+ $me $+ ) 13 $1- }
- else { echo $nick 14[ 12PM 14] $timestamp 13* ( 14 $+ $me $+ ) 13 $1- }
- }
- }
- raw 332:*:{ echo -t $2 $alert Topic: $3- | haltdef }
- raw 333:*:{ echo -t $2 $alert Topic : Set by 12 [ 14 $+ $gettok($3,1,33) 12( 14 $+ $iif(! isin $3,$replace($gettok($3,2,33),@, @ 14,., 12. 14),unknown address) $+ 12)] at 12 ( 14 $+ $asctime($4) $+ 12 ) | echo -t $2 | haltdef }
- alias alert { return 14 [ 12¤ 14 ] }
- raw 313:*:{ echo -a 12| $5- | haltdef }
- raw 311:*:{ echo -a 12|¯¯¯¯¯¯¯¯¯¯¯ ( /whois 14 $2 $+ 12 ) | echo -a 12| 14 $3 $+ @ 14 $+ $replace($4,., 12 . 14) * $6- | haltdef }
- raw 319:*:{ echo -a 12| on 14 $remove($3-,@,%,+) | haltdef }
- raw 312:*:{ echo -a 12| 12 $replace($3,., 14. 12) 14( 12 $+ $4- $+ 14) | haltdef }
- raw 307:*:{ echo -a 12| 14 Identified | haltdef }
- raw 317:*:{ echo -a 12| Idle: 12 $duration($3) 14| Signed on 12 $duration($calc($ctime - $4)) ago. | haltdef }
- raw 318:*:{ echo -a 12|___________ ( /whois 14 $2 $+ 12 ) | haltdef }
- raw 335:*:{ echo -a 12| 14 is a Bot | haltdef }
- raw 671:*:{ echo -a 12| 12S 14ecure 12C 14onnection | haltdef }
- raw 301:*:{ echo -a 12| 14 Away: $3- | haltdef }
- masshl
- alias listchan $iif($numtok($2-,32) < $nick($1,0),scid $cid listchan $1- $+($nick($1,$calc($numtok($2-,32) +1)),$chr(44)),/msg $1 $+([,$1,] $left($2-,-1),.))
- Input commands
- on *:input:#:{
- if ($1 == .kb) { ban -k $chan $2 $3- }
- if ($1 == .b) { mode $chan +b $address($2,2) }
- if ($1 == .tkb) { ban -ku $+ $2 $chan $2 14 You have been banned for 7 $3 14Seconds from 7 $chan $+ 14. }
- if ($1 == .i) { invite $2 $chan }
- if ($1 == .k) { kick $chan $2 $3- }
- if ($1 == .akick) { msg ChanServ akick $chan add $2 $3 }
- if ($1 == .delakick) { msg ChanServ akick $chan del $2 }
- if ($1 == .akicklist) { msg Chanserv akick $chan list }
- if ($1 == .hl) { listchan # }
- if ($1 == .rlb) { mode $chan -b $readini(rlb.ini,Bans,$chan) }
- }
- On *:BAN:#:{ writeini rlb.ini Bans $chan $banmask }
- on *:input:#: {
- if ($1 == .rlb) { mode $chan -b $readini(rlb.ini,Bans,$chan) }
- }
- Modes
- ON *:INPUT:#:{ if ($regex($1,/^[-+]\w+/Si)) { /mode # $1- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement