From bf971f69d8a4317d511334727455f368906b9a21 Mon Sep 17 00:00:00 2001 From: Cerapter Date: Fri, 10 Aug 2018 00:30:05 +0200 Subject: [PATCH] Fixed a bug where showname change rules got ignored when changing songs. --- server/aoprotocol.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/aoprotocol.py b/server/aoprotocol.py index d26afc9..877b617 100644 --- a/server/aoprotocol.py +++ b/server/aoprotocol.py @@ -489,6 +489,9 @@ class AOProtocol(asyncio.Protocol): name, length = self.server.get_song_data(args[0]) if len(args) > 2: 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 self.client.area.play_music_shownamed(name, self.client.char_id, showname, length) self.client.area.add_music_playing_shownamed(self.client, showname, name) else: