After I try to change my nick to something that's taken I usually whois the person. No real point it's just something I do.
Now when I do it I'll get:
/nick Blitzjager
The nickname 'Blitzjager' is being used by: alchy@you.stupid.ngrfgt.com
They have been idle for: 19 hour(s), 12 minute(s), and 59 second(s).
They are on: @#dickbrain
As I was about to submit this I looked up time stuff in help and found $duration but now I've decided just to leave it as is because
19 hour(s), 12 minute(s), and 59 second(s) > 19hrs 12mins 59secs
:)
raw 433:*: { set %nickinuse 1 | whois $2 $2 | halt }
raw 311:*: { if (%nickinuse) { echo -a The nickname $+(',,$2,,') is being used by: $+(,$3,@,$4) | halt } }
raw 319:*: { if (%nickinuse) { var %x $chan(0), %y 1 | while (%y <= %x) { var %chans $addtok(%chans,$chan(%y),32) | inc %y } | var %x $numtok($1-,32), %y 3 | while (%y <= %x) { if ($regsubex($($chr(36) $+ %y,2),/^.*#/,$chr(35)) isin %chans) { var %z $addtok(%z, $+ $($chr(36) $+ %y,2) $+ ,32) } | else { var %z $addtok(%z,$($chr(36) $+ %y,2),32) } | inc %y } | echo -a They are on: %z | halt } }
raw 317:*: { if (%nickinuse) { echo -a They have been idle for: $floor($calc( [ $3 ] /60/60)) hour(s), $floor($calc( [ $3 ] /60-$floor($calc( [ $3 ] /60/60))*60))) minute(s), and $calc( [ $3 ] -$floor($calc( [ $3 ] /60-$floor($calc( [ $3 ] /60/60))*60))*60-$floor($calc( [ $3 ] /60/60))*60*60) second(s) & signed on $asctime($4) | halt } }
raw 312:*: { if (%nickinuse) { halt } }
raw 330:*: { if (%nickinuse) { halt } }
raw 318:*: { if (%nickinuse) { unset %nickinuse | halt } }
I found two bugs:
The nickname 'noob' is being used by: Kirby@drinking.beer.and.eating.chips.while.playing.funbots.org
They are on: +#GoFish @#dota.ro @#zNigel- @#Segumisama @#FunBots.dev @#lameness @#-_- @#Taco @#FunBots.crew @#code9 @#FunBots.Games #JukeBox @#secret +#FunBots @#downtime @#estate #DarkServ @#!@!
They have been idle for: 0 hour(s), 2 minute(s), and 1 second(s) & signed on Sun Feb 22 19:34:09 2009 - I sometimes get that when I try //nick $me or whatever I had.
and