i'm trying to make IRC services for unreal IRCd, but im having trouble geting the services server to connect,
my error message:
:home.Net.Net NOTICE AUTH :*** Looking up your hostname...
:home.Net.Net NOTICE AUTH :*** Found your hostname (cached)
ERROR :Link denied (Authentication failed) [@127.0.0.1.2807]
ERROR :Closing Link: [127.0.0.1] (Link denied (Authentication failed))
my unreal IRCd version: Unreal3.2.3
my mIRC-scripting code:
alias ircd.services {
services.lc
services.start
window -e @log
}
alias services.lc {
set %sn Services.Net.Net
set %uline %sn stats.net.net
set %ns NickServ!*@*
set %cs ChanServ!*@*
set %os OperServ!*@*
set %hs HostServ!*@*
set %hhs HelpServ!*@*
set %port 7000
set %pass LiNk
set %addr 127.0.0.1
}
alias services.start {
if ($sockopen(Services)) /sockclose services
sockopen Services %addr %port
}
on *:sockopen:Services: {
sockwrite -n $sockname $+(:,%sn) PASS %pass 2360 |EW
echo -sc info * Services sent PASS command...
sockwrite -n $sockname $+(:,%sn) PROTOCTL NOQUIT TOKEN NICKv2 UMODE2 VL SJ3 NS
echo -sc info * Services sent PROTOCTL command...
set %token 2
sockwrite -n $sockname $+(:,%sn) SERVER %sn 1 %token :IRC Services Server
echo -sc info * Services sent SERVER command..
}
on *:sockread:Services: {
if ($sockerr) return
sockread %READ
echo @log %READ
}
im not sure if somthing is wrong with the PASS command, because the RFC told me to use that format (RFC link:
RFC 2813)
I'm doing this mostly so i can test with services, and also to learn some more socket scripting

Any help would be apreciated!