Ops, forgot to replace two throws

pull/108/merge
Peter 'Pita' Martischka 2011-08-20 18:56:38 +01:00
parent b9f23fa208
commit fdeb2a45e7
1 changed files with 4 additions and 2 deletions

View File

@ -154,11 +154,13 @@ exports.handleMessage = function(client, message)
{
if(message == null)
{
throw "Message is null!";
messageLogger.warn("Message is null!");
return;
}
if(!message.type)
{
throw "Message has no type attribute!";
messageLogger.warn("Message has no type attribute!");
return;
}
//Check what type of message we get and delegate to the other methodes