From 6155ac0f7fa501f1d552924c3f7ec832ebca5c2c Mon Sep 17 00:00:00 2001 From: The Immortal Date: Fri, 27 Jun 2014 22:30:01 +0400 Subject: [PATCH] Only allow drivers and up to broadcast roomintro --- commands.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands.js b/commands.js index 5d9ef6417b..c9ea62244c 100644 --- a/commands.js +++ b/commands.js @@ -250,6 +250,7 @@ var commands = exports.commands = { roomintro: function (target, room, user) { if (!target) { if (!this.canBroadcast()) return; + if (this.broadcasting && !user.can('mute', null, room)) return; var re = /(https?:\/\/(([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?))/g; if (!room.introMessage) return this.sendReply("This room does not have an introduction set."); this.sendReplyBox(room.introMessage);