diff --git a/lib/CoreBot.js b/lib/CoreBot.js
index <HASH>..<HASH> 100755
--- a/lib/CoreBot.js
+++ b/lib/CoreBot.js
@@ -728,7 +728,8 @@ function Botkit(configuration) {
                     test = tests[t];
                 }
 
-                if (match = message.text.match(test)) {
+                var match = message.text.match(test);
+                if (message.text.match(test)) {
                     message.match = match;
                     return true;
                 }
Fix issue ReferenceError: match is not defined

botkit/lib/CoreBot.js:<I> message.match = match;

ReferenceError: match is not defined