mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Check for missing userInfo
This commit is contained in:
parent
e811037300
commit
f2742c5b63
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue