egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

checking server

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
ranny
Halfop


Joined: 22 Jun 2005
Posts: 49
Location: switzerland

PostPosted: Fri Sep 23, 2005 6:47 pm    Post subject: checking server Reply with quote

hello,

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

thanks
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Sep 23, 2005 7:05 pm    Post subject: Reply with quote

Search the Tcl archive for notify.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Sep 23, 2005 7:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ranny
Halfop


Joined: 22 Jun 2005
Posts: 49
Location: switzerland

PostPosted: Sat Sep 24, 2005 9:09 am    Post subject: Reply with quote

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 Question

Thanks and sorry for my bad english Sad
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Sep 24, 2005 1:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ranny
Halfop


Joined: 22 Jun 2005
Posts: 49
Location: switzerland

PostPosted: Sat Sep 24, 2005 7:01 pm    Post subject: Reply with quote

Yes demond thx.

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

THX
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Sep 24, 2005 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ranny
Halfop


Joined: 22 Jun 2005
Posts: 49
Location: switzerland

PostPosted: Sun Sep 25, 2005 7:44 am    Post subject: Reply with quote

Yeah,

it's really very nice Laughing
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber