Whois on nick

By Blitzjager on Jan 21, 2009

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 } }

Comments

Sign in to comment.
Kirby   -  Feb 09, 2009

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

  • When /server -m'ing, it glitches and I have to /unset %nickinuse.
 Respond  
Blitzjager   -  Feb 09, 2009

Added sign-on time as well as underlining common channels :S

Should've just left it at raw 433:: { whois $2 $2 }*

 Respond  
Kirby   -  Feb 08, 2009

Great job, but how about adding 'sign-on' time?

 Respond  
Jonesy44   -  Jan 21, 2009

NP :]

 Respond  
Blitzjager   -  Jan 21, 2009

I thought I had a reason why I didn't do that but I can't remember it now. Thanks ^^

Edit: I think it was because of the unset. If they weren't on any channels it would halt after the echo so I just made the alias to unset. Dunno why I didn't think to just put it before the echo.

 Respond  
Jonesy44   -  Jan 21, 2009

ahhh ok! fair enough. nice work otherwise. one suggestion i have tho, is echo the info as you get it, incase some server dont put out that last raw, no data will be echo'd

 Respond  
Blitzjager   -  Jan 21, 2009

Guess I could've left it at that but maybe I didn't want all the info. :O
Lol
I really only need who they are and idle.

 Respond  
Jonesy44   -  Jan 21, 2009
raw 433:*: { whois $2 $2 }

If it's there, why change it? $asctime works too ;]

 Respond  
Blitzjager   -  Jan 21, 2009

I want my nick back. :(

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.