title: "Registration timeout" on very basic Python IRC bot
body: <p>I am building a very basic Python BOT in Python 3; Mostly feeding off several manuals and tutorials since I am just learning the language. My issue right now is connecting into the server, all I receive is the following:</p>
  
  <pre><code>:ircserver NOTICE * :*** Looking up your hostname...
  :ircserver NOTICE * :*** Couldn't resolve your hostname; using your IP address instead
  PING :CFC3BEE0
  :ircserver 451 JOIN :You have not registered
  ERROR :Closing Link: Botski[serverIPaddress] (Registration Timeout)
  </code></pre>
  
  <p>whereas ircserver is the address of the server; and serverIPaddress is the IP, ommited because it's irrelevant</p>
  
  <p>I have read somewhere that "Registration Timeout" is caused due to failure to respond to PING. I can see right there it says PING :CFC3BEE0</p>
  
  <p>I respond to that this way</p>
  
  <pre><code>if ircmsg.find("PING :") != -1: 
      pongvalor = ircmsg[6:13]
      ping(pongvalor)
  </code></pre>
  
  <p>So, what I believe this should do is, if it receives a message where it says PING : ; it should take the characters 6 to 13 (in this case CFC3BEE0), put them in variable pongvalor and send them into ping() ; whereas ping() is:</p>
  
  <pre><code>def ping(pong):
      ircsock.send(bytes("PONG :" + pong + "\r\n", "UTF-8"))
  </code></pre>
  
  <p>So, it should respond PONG :CFC3BEE0 ; Am I doing something wrong?</p>
  
  <p>Code, in case it's necesary: <a href="https://pastebin.com/2HdgBF58" rel="nofollow noreferrer">https://pastebin.com/2HdgBF58</a></p>
  
  <p>Thanks for your time.</p>