mirror of
https://github.com/Xevion/tcp-chat.git
synced 2025-12-06 03:16:44 -06:00
command name argument lower, ensure client is properly removed from main.py all_clients
This commit is contained in:
@@ -32,7 +32,7 @@ class CommandHandler:
|
||||
aliases = []
|
||||
|
||||
name = name or func.__name__.capitalize()
|
||||
command_name = command_name or func.__name__.lower()
|
||||
command_name = (command_name or func.__name__).lower()
|
||||
|
||||
for alias in aliases:
|
||||
self.aliases[alias] = command_name
|
||||
|
||||
Reference in New Issue
Block a user