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!
Tested, and working; my version
menu channel,menubar,status {
Search Trigger Confirm
.$iif(%stconfirm == 1,Disable,Enable):{
set %stconfirm $iif(%stconfirm,0,1)
echo 3 -a Search trigger confirmation popup is now $iif(%stconfirm,enabled.,disabled.)
}
}
on ^*:hotlink:*:*:if ($regline) return | halt
on *:hotlink:*:*: {
if ($regline) {
if (%stconfirm && $?!="Do you want to request this packet?$&
$crlf $+ You can turn this confirmation off by clicking:$&
$crlf $+ mIRC > Search Trigger Confirm > Set off") || (!%stconfirm) {
$regml(1)
}
elseif (%stconfirm) {
echo 4 -a You have chosen to not request the pack from the bot!
}
}
}
alias -l regline return $regex($hotline,/[\("]\/((ctcp|msg).+)[\)"]/Si)