Stopped people from pretending to say a modchat message.
This commit is contained in:
parent
a21dd24380
commit
34d6f6fa54
@ -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('/'):
|
||||||
|
Loading…
Reference in New Issue
Block a user