Where is the linking code? I am looking into coding a "semi-server" to link to my net to perform certain U:line duties, so I need to figure out the link protocol--a link to the link docs (;)) or a finger in the direction of the correct file would be nice.
Thanks!
--DC
Where on _earth_ is the linking code?
I did/am. It does not detail what the servicestamp is.
OK:
i.e it connects, makes a link, waits for the server to give ES, gets the timestamp, and registers the user.
OK:
Then I have the script register the user with a nick, and::XXX.XXX ES
and12:44:30p-} -XXX.XXX- *** Global -- Lost user field for LifeSux in change from KimS.Cibilian.Org[199.247.229.113]
:XXX.XXX KILL LifeSux :jack.cibilian.org (Lost user field!)
Code: Select all
&establishLink();
while (<$sock>) {
print;
last if /^:XXX.XXX ES/;
}
$time = `date -j -f "%a %b %d %T %Z %Y" "\`date\`" "+%s"`;
print $sock "& LifeSux 1 $time kims $servername $servername 0 :KimS Bot\n";
{Amp}
for $time you should use the seconds passed since midnight 1 januari 1970.john wrote:i.e it connects, makes a link, waits for the server to give ES, gets the timestamp, and registers the user.Code: Select all
&establishLink(); while (<$sock>) { print; last if /^:XXX.XXX ES/; } $time = `date -j -f "%a %b %d %T %Z %Y" "\`date\`" "+%s"`; print $sock "& LifeSux 1 $time kims $servername $servername 0 :KimS Bot\n";
Im currently working on a somewhat the same project. here is my user create code:
Code: Select all
Send( "& SweNed 666 200000 service services.swened.com services.swened.com 0 +Sqvtr services.swened.com * :Type /msg SweNed HELP for help" );
tec doc:
/path-to-unreal/doc/technical/serverprotocol.html#S3_1
Anope uses the following format:
As far as I know a timestamp of 0 or 1 should work.
Code: Select all
NICK NickServ 1 1178884110 services invictachat.net services.invictachat.net 0 +oS invictachat.net * :InvictaChat: Nickname Server