while line recv 500 print line if line find Welcome to the DALNet RU I

1
2
3
4
5
6
7
8
while 1:
line = s.recv(500)
print line
if line.find('Welcome to the DALNet.RU Internet Relay Chat Network') != -1:
s.send('JOIN '+channel+"\n")
if line.find('PING :') != -1:
print 'goo'