Home > Code, mIRC > hli.mrc – Highlight Ignore

hli.mrc – Highlight Ignore

1
2
3
4
5
;;;; Highlight Ignore v1.1.1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Written by:                                                                ;;
;;   Brian Schmidt aka. brianMan.                                             ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;; Readme / Help ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Load this script in mIRC, if you don’t know how to do this, then perhaps ;;
;; you shouldn’t be using this script. ;;
;; ;;
;; Simple script to enable/disable highlights on the fly. ;;
;; ;;
;; Commands available: ;;
;; /hli ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;; Changelog ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; v1.1.1 ;;
;; * Fixed script so it catches all highlights, but doesn’t catch numbers ;;
;; which $me apparently tends to catch. ;;
;; Only works with 1 word in each highlight entry :( ;;
;; * Changed the date syntax which was used in the @Hightlights window. ;;
;; ;;
;; v1.1.0 ;;
;; * Rewrote code to be nicer/more compact. ;;
;; ;;
;; v1.0.0 ;;
;; + Initial release. ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

alias hli {
if (%hli.status != $null && %hli.status != 0 && %hli.status != off) {
set %hli.status 0
echo -tac info *** Highlight ignore is OFF: mIRC will now act according to your Highlight Settings.
}
else {
set %hli.status 1
echo -tac info *** Highlight ignore is ON: mIRC will no longer flash or beep when you get highlighted.
}
}

on ^*:TEXT:*:*: {
if ($matchtok($1-, $highlight($1-), 0, 32)) {
if ($window(@Highlights) == $null) window -n @Highlights
echo @Highlights [[ $+ $asctime(yyyy-mm-dd HH:nn:ss) $+ ]] < $+ $nick $+ $iif($chan != $null,@ $+ $chan,) $+ @ $+ $network $+ > $1-
if (%hli.status == 1 || %hli.status == on) {
haltdef
if ($target == $nick || $target == =$nick) var %target = $iif(=* iswm $active,=$nick,$nick)
else var %target = $target
echo $highlight($1-).color -t %target < $+ $nick $+ > $1-
}
}
}

on ^*:ACTION:*:*: {
if ($matchtok($1-, $highlight($1-), 0, 32)) {
if ($window(@Highlights) == $null) window -n @Highlights
echo -c action @Highlights [[ $+ $asctime(yyyy-mm-dd HH:nn:ss) $+ ]] * $+ $nick $+ $iif($chan != $null,@ $+ $chan,) $+ @ $+ $network $1-
if (%hli.status == 1 || %hli.status == on) {
haltdef
if ($target == $nick || $target == =$nick) var %target = $iif(=* iswm $active,=$nick,$nick)
else var %target = $target
echo $highlight($1-).color -t %target * $nick $1-
}
}
}

Categories: Code, mIRC Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.