I am trying to set up a socket connection bot (that thats the idea in the long run) my BNC. Going through the BNC seems to remove some of the user error's when dealing with connecting to the server and the socket output's (in theory).
Here is the code:-
alias open.socket {
sockopen conn1 66.90.82.236 50127
echo 4 Socket connection test started
}
on *:SOCKOPEN:conn1: {
if ($sockerr > 0) return
sockwrite -tn $sockname user $rand(a,z) $+ $rand(1,99) $qt(asdf) $qt(asdf) : $+ tecsatan
sockwrite -tn $sockname nick $rand(a,z) $+ $rand(1,9999)
sockwrite -tn $sockname quote PASS <my password>
}
on *:sockread:conn1:{
if ($sockerr > 0) return
:nextread
sockread %temp
if ($sockbr == 0) return
if (%temp == $null) %temp = -
echo 4 %temp
goto nextread
}
alias close.socket {
sockclose conn1
echo 4 Socket connection test finished
}
Here is what I am gettign as a reply:-
Socket connection test started
NOTICE AUTH :You need to say /quote PASS <password>
Now the problem is, how do you send /quote commands over a socket connection? I could be rong but I don't think notice or privmsg will work because your not sending it to a person or room, your sending to the server.
Any ideas?