Stopped people from pretending to say a modchat message.

This commit is contained in:
Cerapter 2018-09-02 10:49:55 +02:00
parent a21dd24380
commit 34d6f6fa54

View File

@ -445,7 +445,7 @@ class AOProtocol(asyncio.Protocol):
if unicodedata.category(c) == 'Cf': if unicodedata.category(c) == 'Cf':
self.client.send_host_message('You cannot use format characters in your name!') self.client.send_host_message('You cannot use format characters in your name!')
return return
if self.client.name.startswith(self.server.config['hostname']) or self.client.name.startswith('<dollar>G'): if self.client.name.startswith(self.server.config['hostname']) or self.client.name.startswith('<dollar>G') or self.client.name.startswith('<dollar>M'):
self.client.send_host_message('That name is reserved!') self.client.send_host_message('That name is reserved!')
return return
if args[1].startswith('/'): if args[1].startswith('/'):