Hotlink for search returns
Platform: mIRC
Published Nov 13, 2011
Updated Nov 13, 2011
What this does is it turns any line that contains (/msg * * * *), "/msg * * * *", (/ctcp * * * *), and "/ctcp * * * *" into a clickable link that will return whatever is between either ( and ) or between the two sets of quotation marks.
Load in remotes to use
Thank you to Jethro for helping me understand how ON HOTLINKS work, and thank you to Ford_Lawnmower for assistance with the regex.
menu channel,menubar,status {
Search Trigger confirm
.set $iif(%stconfirm == on,OFF,ON):{
set %stconfirm $iif(%stconfirm == on,off,on)
echo 3 -a Search trigger confirmation popup is now %stconfirm
}
}
;******************************************************************************************************
; Hotlink for search routines
;******************************************************************************************************
;
on ^*:hotlink:*:*: {
var %Hlink.SS = /[\x28"]\/((ctcp|msg).*)[\x29"]/Si
if ($regex($hotline,%Hlink.SS)) { return }
halt
}
on *:hotlink:*:*: {
if ($regex($hotline,%Hlink.SS)) {
$iif(%stconfirm == on, $?!="Do you want to request this packet? $crlf $+ You can turn this Confirmation off by clicking. $crlf $+ mIRC>Search Trigger confrim>set off", $regml(1))
}
}
;******************************************************************************************************
; Alias Section
;******************************************************************************************************
;
alias -l $true if ($regex($hotline,%Hlink.SS)) $regml(1)
alias -l $false echo 4 -a You have chosen to not request the pack from the bot!