hello again,
i'm in need of some assistance with a snippet called nick sniper by bl4h. i cant seem to get it right, the problem is that i can't get it to do the if nick is online check, i don't know how to do this. this what i have got so far:
nicksniper {
if ($tempr(NickSniper,Enabled) == On) {
if (%stealnickback = $null) { set %stealnickback $?="What nick do you want back?" }
if ($me = stealnickback) { echo -a *** Not watching %stealnickback anymore }
%stealnickback = $1
if ($timer(stealnickback)) { .timerstealnickback off }
.timerstealnickback 0 5
echo -a *** Watching nickname $1
}
else echo -a *** Nick Sniper Is Not Enabled !!!
}
and the raw that goes with it :
raw 303:*:{
if (%stealnickback != $2) {
nick %stealnickback
echo -a *** Regained %stealnickback
.timerstealnickback off | halt
}
to clarify what this is supposed to do is recapture your nick when either you get disconected and rejoin a chan and you ghosted or someone has your nick. it cycles the check thru a timer and when the nick becomes free it takes it back automaticly. now i have this set to work from a dialog. i know this is not correct, so i'm looking for some help.
here is what the original code looks like:
raw 303:*:{
if (%bl4h.stealnick != $2) {
nick %bl4h.stealnick
echo -a *** Regained %bl4h.stealnick
unset %bl4h.stealnick
.timerstealnick off
}
haltdef
}
alias snipenick {
if (!$1) { echo -a USAGE: /snipenick <nickname> | halt }
if (%bl4h.stealnick) { echo -a *** Not watching %bl4h.stealnick anymore }
%bl4h.stealnick = $1
if ($timer(stealnick)) { .timerstealnick off }
.timerstealnick 0 5 /ison $1
echo -a *** Watching nickname $1
}
any help is appreciated.... thanks in advance