From c191996975e2e498a4710ed70b2e6bf4af8d772b Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 11 Oct 2015 19:22:14 +0200 Subject: [PATCH] Changed so that channel names can use any case. Resolves #814. --- evennia/commands/default/comms.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/evennia/commands/default/comms.py b/evennia/commands/default/comms.py index ab66000f40..d89f23f687 100644 --- a/evennia/commands/default/comms.py +++ b/evennia/commands/default/comms.py @@ -519,17 +519,15 @@ class CmdChannelCreate(MuxPlayerCommand): channame = lhs aliases = None if ';' in lhs: - channame, aliases = [part.strip().lower() - for part in lhs.split(';', 1) if part.strip()] - aliases = [alias.strip().lower() - for alias in aliases.split(';') if alias.strip()] + channame, aliases = lhs.split(';', 1) + aliases = [alias.strip().lower() for alias in aliases.split(';')] channel = ChannelDB.objects.channel_search(channame) if channel: self.msg("A channel with that name already exists.") return # Create and set the channel up lockstring = "send:all();listen:all();control:id(%s)" % caller.id - new_chan = create.create_channel(channame, + new_chan = create.create_channel(channame.strip(), aliases, description, locks=lockstring)