to turn it on, type /notice on
to turn it off, type /notice off
if its on, and some1 says your name it will notice you that they have been talking about you.
im planning on stretching this out into an ini so you can look back on who is talking about you, unless you guys think i shouldnt, if so tell me.
;credits to lindrian for the ($me isin $1-)
on *:TEXT:*:#: {
if (%noticeme == off) { halt }
if (%noticeme == on) {
if ($me isin $1-) notice $me $nick is talking about you
}
}
alias notice {
if ($1 == off) {
if (%noticeme == off) { .notice $me its already off.. | HALT }
if (%noticeme != off) {
set %noticeme off
.notice $me Notice is off.
}
}
if ($1 == on) {
if (%noticeme == on) { .notice $me its already on.. | HALT }
if (%noticeme != on) {
set %noticeme on | .notice $me Notice is on.
}
}
}
pariah the isin operator is more reliable in this case as $istok will not catch nickname? i.e pariah? it will only catch a token seperated with the chr specified which restricts it. as for the script to many ifs to many { } etc makes the code look ugly for example \"if (%noticeme == off) { halt }\" is not needed just use if (%noticeme == on) and it auto wont parse if its off, also you dont need all those {{}{}{}{ etc if the commands is on the same line as the if.