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.

how to check if an user has logged in to server-services ?

Old posts that have not been replied to for several years.
Locked
o
odoisc

Post by odoisc »

What I am trying to do :

Whenever someone does certain commands for the bot I want to check if that user has logged in on the local nickserv of the server. This can be checked doing a command like ".msg service check xxxx" , wich gives a reaction like "user xxxx is logged in" or "user xxxx is not logged in".

So only if that user is logged in his commands will be performed, otherwise it should give a message like "please login to service".

Is there a way to do this in Tcl ?

thnx

<font size=-1>[ This Message was edited by: odoisc on 2001-10-13 05:33 ]</font>
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This could be done, but not very easily.

It requires some sort of call back to be made, and would have to be programed individualy to work with each command your wish protected.

To do this, what is the exact command used to ask sercices if the user is logged on?

What server numeric does the server reply with for the answer with.
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

It is un-likely that the services would even send a numeric. Most services use a /msg command like /msg nickserv acc, where nickserv would reply with a notice such as:
[qoute] Wcc ACC 2 [/quote]
Where an acc level of 3 means that the user has identified to its nick. The above example is from DALNet, it may be different on other networks.
Locked