socket connections to mirc servers - 17/07/06 11:26 PM
I am trying to creat a socket connection to an IRC server. In time i wish to build my IRC bot to shadow me on the server in my mirc but running off a socket connection.
I have not been able to connect so i created this script to see what the problme is:-
alias open.socket {
sockopen conn1 irc.icq.com 6667
echo 4 Socket connection test started
}
on *:SOCKOPEN:conn1: {
if ($sockerr > 0) return
sockwrite -tn $sockname user $rand(a,z) $+ $rand(1,99) asdf asdf asdf
sockwrite -tn $sockname nick $rand(a,z) $+ $rand(1,9999)
sockwrite -tn $sockname join #thinktank
}
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
}
This is the result i got:-
:irc-m06.icq.aol.com NOTICE AUTH :*** Looking up your hostname...
:IRC!IRC@irc-m06.icq.aol.com PRIVMSG e7386 :VERSION
:irc-m06.icq.aol.com 465 e7386 :*** Your GECOS (real name) is not allowed on this server (cradle) Please change it and reconnect
ERROR :Closing Link: e7386[81.155.192.207] (Your GECOS (real name) is banned from this server)
Does anyone know what I must do to be able to connect. E.g. how do i set a GECOS or (real name) on sockets?
I know its not my IP thats banend as I am connected to the server on my IP address.
I have not been able to connect so i created this script to see what the problme is:-
alias open.socket {
sockopen conn1 irc.icq.com 6667
echo 4 Socket connection test started
}
on *:SOCKOPEN:conn1: {
if ($sockerr > 0) return
sockwrite -tn $sockname user $rand(a,z) $+ $rand(1,99) asdf asdf asdf
sockwrite -tn $sockname nick $rand(a,z) $+ $rand(1,9999)
sockwrite -tn $sockname join #thinktank
}
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
}
This is the result i got:-
:irc-m06.icq.aol.com NOTICE AUTH :*** Looking up your hostname...
:IRC!IRC@irc-m06.icq.aol.com PRIVMSG e7386 :VERSION
:irc-m06.icq.aol.com 465 e7386 :*** Your GECOS (real name) is not allowed on this server (cradle) Please change it and reconnect
ERROR :Closing Link: e7386[81.155.192.207] (Your GECOS (real name) is banned from this server)
Does anyone know what I must do to be able to connect. E.g. how do i set a GECOS or (real name) on sockets?
I know its not my IP thats banend as I am connected to the server on my IP address.