diff options
| author | Cerapter <cerap@protonmail.com> | 2018-09-20 18:41:40 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-09-20 18:41:40 +0200 |
| commit | 1ddfdb34b1e158f4de790b63385b4e9cbebdbefe (patch) | |
| tree | 174a72b142bf86ed186f1e3b5703c004a60c881d | |
| parent | 75cc04225bf5814623a6f2d0a197a75684760873 (diff) | |
Fixed a small bug regarding music changes while shownamed.
| -rw-r--r-- | server/aoprotocol.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/aoprotocol.py b/server/aoprotocol.py index 18f688bb..1bf90019 100644 --- a/server/aoprotocol.py +++ b/server/aoprotocol.py @@ -627,10 +627,10 @@ class AOProtocol(asyncio.Protocol): if self.client.area.jukebox: showname = '' if len(args) > 2: - if len(args[2]) > 0 and not self.client.area.showname_changes_allowed: + showname = args[2] + if len(showname) > 0 and not self.client.area.showname_changes_allowed: self.client.send_host_message("Showname changes are forbidden in this area!") return - showname = args[2] self.client.area.add_jukebox_vote(self.client, name, length, showname) logger.log_server('[{}][{}]Added a jukebox vote for {}.'.format(self.client.area.abbreviation, self.client.get_char_name(), name), self.client) else: |
