This commit is contained in:
sidya82 2015-04-02 14:15:11 +02:00
parent 9216f5ed45
commit 1fdd69c4cb
2 changed files with 3 additions and 4 deletions

View File

@ -52,7 +52,7 @@ def handleRequest(connection, data):
connection.send("ERR_COMMAND_NOT_FOUND".encode())
else:
if arrayData[0] == "/newname" :
newName(connection)
newName(connection, arrayData[1])
return
if arrayData[0] == "/quit" :
quit(connection)
@ -91,7 +91,7 @@ def changeName(connection, pseudo):
def newName(connection, pseudo):
broadcastMsg("HAS_JOIN {} ".format(pseudo))
connection.send("SUCC_VALID_NICKNAME")
connection.send("SUCC_VALID_NICKNAME".encode())
usersConnected[connection][1] = pseudo

View File

@ -2,5 +2,4 @@ __author__ = 'sidya'
from serveur import Server
if __name__ == '__main__':
Server.main()
Server.main()