aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/aoprotocol.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/aoprotocol.py b/server/aoprotocol.py
index d26afc9a..877b6172 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: