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)