This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

checking server

Old posts that have not been replied to for several years.
Locked
r
ranny
Halfop
Posts: 49
Joined: Wed Jun 22, 2005 2:00 pm
Location: switzerland

checking server

Post by ranny »

hello,

It's possible to check if a nick is on the server?
so yes, how verify?

thanks
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Search the Tcl archive for notify.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

all servers support ISON command, and notify scripts typically use it periodically to check if certain nick(s) are on IRC

however, it's use is deprecated on servers which support WATCH server-side notify command (those that use DALnet's bahamut, EFnet's later versions of ircd-hybrid-7, every lamer's favourite Unreal, and maybe more that I'm not aware of); on such servers, you simply supply the nick(s) you need to be watched for as a parameter of WATCH and [bind raw] in order to be notified by the server upon those nick(s) sign-in or sign-off - no need of periodic polling with ISON

you can also [bind raw] to 005 and parse ISUPPORT server reply for WATCH support (as mIRC does and eggdrop should be doing)
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
r
ranny
Halfop
Posts: 49
Joined: Wed Jun 22, 2005 2:00 pm
Location: switzerland

Post by ranny »

hello,

In fact I have a script where when user type "!whois nick" the eggdrop gives information on the nick.
It's possible with a raw, who reacts at the whois, to directly know if the nick is on the server??
That the eggdrop writes on the chan "nick isn't present on the server" , for example :?:

Thanks and sorry for my bad english :-(
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

there is no point of using WHOIS where ISON will do, ISON causes much less traffic and is therefore allowed at higher pace than WHOIS
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
r
ranny
Halfop
Posts: 49
Joined: Wed Jun 22, 2005 2:00 pm
Location: switzerland

Post by ranny »

Yes demond thx.

But i don't now how to use "ISON".You can give me an example please

THX
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

a notify script on eggdrop is basically pointless (since you already have built-in notify in your irc client), unless used to grab a nick when it becomes available (jupe); anyway, here's how to use ISON:

Code: Select all

bind raw - 303 foo
bind pub - !ison bar
proc bar {n u h c t} {
   if {![info exists ::who]} {
      set ::who $t
      putserv "ison $t"
   }
}
proc foo {f k t} {
   set t [lrange [split $t] 1 e]
   set t [string trimleft [join $t] :]
   if {$t == ""} {set t offline} {set t online}
   puthelp "privmsg #channel :$::who is $t"
   unset ::who 
}
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
r
ranny
Halfop
Posts: 49
Joined: Wed Jun 22, 2005 2:00 pm
Location: switzerland

Post by ranny »

Yeah,

it's really very nice :lol:
Locked