import string

from Connect import sendMessage

def joinRoom(s):
	readbuffer = ""
	Loading = True
	
	while Loading:
	
		readbuffer = readbuffer + s.recv(1024)
		temp = string.split(readbuffer, "\n")
		readbuffer = temp.pop()
		
		for line in temp:
			print(line)
			Loading = loadingComplete(line)
	
	sendMessage(s, "AhhSooCrazy Bot Monster is starting!!! ;)")
	
def loadingComplete(line):
	if("End of /NAMES list" in line):
		return False
	else:
		return True

import string

from Connect import sendMessage

def joinRoom(s):
	readbuffer = ""
	Loading = True
	
	while Loading:
	
		readbuffer = readbuffer + s.recv(1024)
		temp = string.split(readbuffer, "\n")
		readbuffer = temp.pop()
		
		for line in temp:
			print(line)
			Loading = loadingComplete(line)
	
	sendMessage(s, "AhhSooCrazy Bot Monster is starting!!! ;)")
	
def loadingComplete(line):
	if("End of /NAMES list" in line):
		return False
	else:
		return True
