From d812c960859a4d61a1c941880bdbc7a3ccbf7f69 Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Thu, 21 Jul 2011 01:04:08 +0100 Subject: [PATCH] Use gateway.channel_prefix instead of literal # --- js/front.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/front.js b/js/front.js index 0dfdd74..97b01e1 100644 --- a/js/front.js +++ b/js/front.js @@ -1010,7 +1010,7 @@ tabview.prototype.addMsg = function(time, nick, msg, type, style){ if(next == '') msg =+ ''; } - var re = '\\B(#[^ ,\\007]+)'; + var re = '\\B(' + gateway.channel_prefix + '[^ ,\\007]+)'; re = new RegExp(re, 'g'); msg = msg.replace(re, function(match) { -- 2.25.1