just a simple label snippet. to use it just type !label
the only labels are n00b, loser, fail, and leech. it will notice you i you have not typed a nick or a label. has flood protection. and works. hope you all enjoy. please rate :)
on *:TEXT:!label*:#:{
if (!$($+(%,lbl),3)) {
set -u3 $+(%,lbl) on
if ($3 != n00b) && ($3 != loser) && ($3 != fail) && ($3 != leech) { notice $nick ( $+ $3 $+ ) Is an incorrect label! }
if (!$3) { .notice $nick No label was entered }
if (!$2) { .notice $nick No nick was entered }
if ($3 == n00b) { msg # has labeled $2 as a n00b! }
if ($3 == Fail) { msg # $2 Is now labeled as a FAIL! }
if ($3 == loser) { msg # $nick Has labeled $2 as a loser :P }
if ($3 == leech) { msg # $nick wants to point out that $2 is a leech! }
}
}
He gave you an example with it already done...
Just change this line:
if ($3 != n00b) && ($3 != loser) && ($3 != fail) && ($3 != leech) { notice $nick ( $+ $3 $+ ) Is an incorrect label! }
to:
if (!$istok(n00b|loser|fail|leech,$3,124)) { notice $nick ( $+ $3 $+ ) Is an incorrect label! }
Actually, he even went further than that and rewrote the entire thing for you.. lol
instead of doing
if ($3 != n00b) && ($3 != loser) && ($3 != fail) && ($3 != leech)
you could use $istok
!$istok(n00b|loser|fail|leech,$3,124)
and look into useing $iif
also you may want to check if $2 is in the channel
on *:TEXT:!label*:#:{
if (!$($+(%,lbl),2)) {
set -u3 $+(%,lbl) on
if (!$2 || $2 !ison # || !$3 || !$istok(n00b|loser|fail|leech,$3,124)) { .notice $nick $iif(!$2,No nick was entered,$iif($2 !ison #,Sorry Can't Seem To Find $2,$iif(!$3, No label was entered,$iif(!$istok(n00b|loser|fail|leech,$3,124),$+(,$chr(40),$3,$chr(41),) Is an incorrect label!)))) }
else { msg # $nick has labeled $2 a $+($3,!) }
}
}