mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-15 08:50:10 -05:00
Only allow drivers and up to broadcast roomintro
This commit is contained in:
parent
91325116ac
commit
6155ac0f7f
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user