| View previous topic :: View next topic |
| Author |
Message |
ranny Halfop
Joined: 22 Jun 2005 Posts: 49 Location: switzerland
|
Posted: Fri Sep 23, 2005 6:47 pm Post subject: checking server |
|
|
hello,
It's possible to check if a nick is on the server?
so yes, how verify?
thanks |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Sep 23, 2005 7:18 pm Post subject: |
|
|
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] tag when posting logs, code |
|
| Back to top |
|
 |
ranny Halfop
Joined: 22 Jun 2005 Posts: 49 Location: switzerland
|
Posted: Sat Sep 24, 2005 9:09 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Sep 24, 2005 1:08 pm Post subject: |
|
|
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] tag when posting logs, code |
|
| Back to top |
|
 |
ranny Halfop
Joined: 22 Jun 2005 Posts: 49 Location: switzerland
|
Posted: Sat Sep 24, 2005 7:01 pm Post subject: |
|
|
Yes demond thx.
But i don't now how to use "ISON".You can give me an example please
THX |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Sep 24, 2005 8:58 pm Post subject: |
|
|
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: |
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] tag when posting logs, code |
|
| Back to top |
|
 |
ranny Halfop
Joined: 22 Jun 2005 Posts: 49 Location: switzerland
|
Posted: Sun Sep 25, 2005 7:44 am Post subject: |
|
|
Yeah,
it's really very nice  |
|
| Back to top |
|
 |
|