Check for missing userInfo
parent
e811037300
commit
f2742c5b63
|
@ -473,6 +473,11 @@ function handleSuggestUserName(client, message)
|
||||||
function handleUserInfoUpdate(client, message)
|
function handleUserInfoUpdate(client, message)
|
||||||
{
|
{
|
||||||
//check if all ok
|
//check if all ok
|
||||||
|
if(message.data.userInfo == null)
|
||||||
|
{
|
||||||
|
messageLogger.warn("Dropped message, USERINFO_UPDATE Message has no userInfo!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(message.data.userInfo.colorId == null)
|
if(message.data.userInfo.colorId == null)
|
||||||
{
|
{
|
||||||
messageLogger.warn("Dropped message, USERINFO_UPDATE Message has no colorId!");
|
messageLogger.warn("Dropped message, USERINFO_UPDATE Message has no colorId!");
|
||||||
|
|
Loading…
Reference in New Issue