simply place in remotes and type /alerts on
and when someone says your name ina scentence a dialog will open and tell you the channel the nick and the message
alias alerts {
if ($1) {
if ($1 == on) {
echo -a 3Dialog boxes for nick alerts are now turned on.
set %alert on
}
if ($1 == off) {
echo -a 3Dialog boxes for nick alerts are now turned off.
set %alert off
}
}
}
dialog alert {
title "Nick Alerts"
size -1 -1 140 120
option dbu
menu "&options", 100,
item "&exit", 200, cancel
box "Nick Alert", 7, 5 5 130 110,
text "Channel:", 1, 8 14 25 10,
text "channel:", 2, 30 14 45 10,
text "Nick:", 3, 8 28 25 10,
text "nick:", 4, 20 28 45 10,
text "Message:", 5, 8 45 35 10,
text "message:", 6, 32 45 80 110,
}
on *:TEXT:*your nick here*:#:{
if (%alert == on) {
dialog -mt alert alert
did -o alert 2 1 $chan
}
if ($1-) {
did -o alert 6 1 $1-
}
did -o alert 4 1 $nick
}
i dont think its necessary to make a on text event like this:
on *:TEXT:*your nick here*:#:{
you can set the use of identifier $me which will return the nickname of the person who is running
an example is use $istok like
if ($istok($strip($1-),$me,32))
which is simple, but if you want to use $regex
if $regex($1-,/( |^)\Q $+ $me $+ \E( |$)/iS)
the alias alerts could be shorter than that
alias alerts {
echo -a 3Dialog boxes for nick alerts are now turned $iif($$1 == on, on.,off)
set %alert $iif($$1 == on,on,off)
}