From 0fa954c1a0d2a7e2c6c1d3dcc9987889857f77d9 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 11 Oct 2012 17:51:57 +0400 Subject: [PATCH] fixed variable name in handleMessageHook the code would never work as expected with this type --- src/node/handler/PadMessageHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js index 10b259ae2..831acdbbf 100644 --- a/src/node/handler/PadMessageHandler.js +++ b/src/node/handler/PadMessageHandler.js @@ -178,7 +178,7 @@ exports.handleMessage = function(client, message) // handleMessage will be called, even if the client is not authorized hooks.aCallAll("handleMessage", { client: client, message: message }, function ( messages ) { _.each(messages, function(newMessage){ - if ( newmessage === null ) { + if ( newMessage === null ) { dropMessage = true; } });