Commit 90b73796 authored by Michel Roux's avatar Michel Roux
Browse files

Fix crash when a non-user (like a bot) send a message like the server

parent 568451ad
......@@ -119,6 +119,7 @@ class GlobalBindings {
// Handle messages
client.on('message', (sender, message, users, channels, trees) => {
sender = sender || { __ui: 'Server' }
ui.log.push({
type: 'chat-message',
user: sender.__ui,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment