From 0a9551d2e3a7106b7f743702ecffe5a6cc954d76 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 26 Sep 2013 20:47:25 +0000 Subject: [PATCH] Fix thing that's broken. --- exec/ircbots/dis/dis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/ircbots/dis/dis.js b/exec/ircbots/dis/dis.js index 8bc4b40783..164a6dfc91 100644 --- a/exec/ircbots/dis/dis.js +++ b/exec/ircbots/dis/dis.js @@ -47,7 +47,7 @@ Bot_Commands["DIS"].command = function (target, onick, ouh, srv, lbl, cmd) { if(last_matched) { // last thing we matched -- '' means take a stab last_match_point = pos; orig = last_matched.match(/([^\s]+)/).slice(1).map(clean_string); - re = new RegExp("\\b" + orig.join("\\s+") + "\\s+([^\\s]+" + (new Array(degree)).join("\\s+[^\\s]+") + ")(\\s+)",'i'); + re = new RegExp("\\b" + orig.join("\\s+") + "\\s+([^\\s]+" + (new Array(arg)).join("\\s+[^\\s]+") + ")(\\s+)",'i'); matched = remainder = ''; last_match_point = pos; -- GitLab