I get an error
: irc.evilzone.org NOTICE AUTH: * Search for your hostname ...
: irc.evilzone.org NOTICE AUTH: * Your hostname was found (cached)
PING: 7091A8FB
: irc.evilzone.org 451 JOIN: You have not registered
: irc.evilzone.org 451 PRIVMSG: You are not registered
server = "irc.evilzone.org"
port = 6667
irc = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
irc.connect ( ( server, port ) )
print irc.recv ( 4096 )
nick = 'Piebot'
chan = 'test'
version= "1.0"
irc.send ( 'NICK Pizebot\r\n' )
irc.send ( 'USER Pizebot Pibot Pibot :Python IRC\r\n' )
irc.send ( 'JOIN
irc.send ( 'PRIVMSG
while True:
readbuffer= irc.recv(4096)
temp=string.split(readbuffer, "\n")
Check = readbuffer.split(':')
print readbuffer
Keeping in mind that some of the commands I use need a piece of code temp = string.split (readbuffer, "\ n"). But with code like this
network = 'irc.evilzone.org'
port = 6667
irc = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
irc.connect ( ( network, port ) )
print irc.recv ( 4096 )
irc.send ( 'NICK ipbot\r\n' )
irc.send ( 'USER ipbot completely real :Jxxx\r\n' )
irc.send ( 'JOIN
irc.send ( 'PRIVMSG
while True:
data = irc.recv ( 4096 )
I can successfully connect to the channel, etc. Any idea?
21days
source
share