Fixed server name list response.

parent 0394c4c8
...@@ -192,7 +192,7 @@ class RequestHandler(AsyncBase, asyncore.dispatcher): ...@@ -192,7 +192,7 @@ class RequestHandler(AsyncBase, asyncore.dispatcher):
if cmd == 'NAMES': if cmd == 'NAMES':
clients = self.server.clients clients = self.server.clients
self.send_raw('+Ok:\r\n' \ self.send_raw('+Ok:\r\n' \
+ '\r\n'.join([clients[c].username for c in clients])) + ''.join([clients[c].username + '\r\n' for c in clients]))
return True return True
return self.send_negative('Unsupported command.') return self.send_negative('Unsupported command.')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment