From 5df988bbcab7b66d16b50a36131766de297edb2f Mon Sep 17 00:00:00 2001 From: sirDonovan Date: Wed, 8 Jan 2014 01:10:56 -0600 Subject: [PATCH 1/2] Update commands.js Made links clickable when broadcasting roomdesc (suggested in the P-Pad) --- commands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands.js b/commands.js index bfc7ec960a..c3f40b1361 100644 --- a/commands.js +++ b/commands.js @@ -256,7 +256,8 @@ var commands = exports.commands = { roomdesc: function(target, room, user) { if (!target) { if (!this.canBroadcast()) return; - this.sendReply('The room description is: '+room.desc); + var re = /(https?:\/\/(([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?))/g; + this.sendReplyBox('The room description is: '+room.desc.replace(re, "$1")); return; } if (!this.can('roommod', null, room)) return false; From 841096d50700b28963e3089d41e02df7283bcd05 Mon Sep 17 00:00:00 2001 From: sirDonovan Date: Wed, 8 Jan 2014 01:43:55 -0600 Subject: [PATCH 2/2] Update commands.js --- commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.js b/commands.js index c3f40b1361..67c51e81f1 100644 --- a/commands.js +++ b/commands.js @@ -257,7 +257,7 @@ var commands = exports.commands = { if (!target) { if (!this.canBroadcast()) return; var re = /(https?:\/\/(([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?))/g; - this.sendReplyBox('The room description is: '+room.desc.replace(re, "$1")); + this.sendReplyBox('The room description is: '+room.desc.replace(re, "$1")); return; } if (!this.can('roommod', null, room)) return false;