title: Python IRC bot won't join
body: <p>I get the error message </p>
  
  <blockquote>
    <p>:irc.evilzone.org NOTICE AUTH :<em>*</em> Looking up your hostname...</p>
    
    <p>:irc.evilzone.org NOTICE AUTH :<em>*</em>
    Found your hostname (cached)</p>
    
    <p>PING :7091A8FB</p>
    
    <p>:irc.evilzone.org 451 JOIN :You have
    not registered</p>
    
    <p>:irc.evilzone.org 451 PRIVMSG :You
    have not registered</p>
  </blockquote>
  
  <pre><code>server = "irc.evilzone.org" # Server 
  port = 6667 #port connect through IRC standard is :(6667 or 9999)
  irc = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
  irc.connect ( ( server, port ) )
  print irc.recv ( 4096 )
  nick = 'Piebot' #bots name
  chan = 'test' #channel
  version= "1.0" #current version
  irc.send ( 'NICK Pizebot\r\n' ) 
  irc.send ( 'USER Pizebot Pibot Pibot :Python IRC\r\n' )
  irc.send ( 'JOIN #test\r\n' ) # YOU MUST CHANGE THE CHANNEL HERE AND BELOW!!
  irc.send ( 'PRIVMSG #test :Hello World.\r\n' )
  
  while True:
      readbuffer= irc.recv(4096)
  
      temp=string.split(readbuffer, "\n")
      Check = readbuffer.split(':')
      print readbuffer
  </code></pre>
  
  <p>Keeping in mind that some of the commands I use need the temp= string.split(readbuffer,"\n") portion of the code.But with code like this </p>
  
  <pre><code>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 #test\r\n' )
  irc.send ( 'PRIVMSG #test:Oh Hai.\r\n' )
  while True:
     data = irc.recv ( 4096 )
  </code></pre>
  
  <p>I can successfully connect to the channel etc. Any idea?</p>