Commit 9920e79a70e43d5be2ebe10b70f21d9100368542
1 parent
0fa0e68182
Exists in
master
debuging
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
index.js
... | ... | @@ -90,7 +90,7 @@ xmpp.on('online', function(data) { |
90 | 90 | }); |
91 | 91 | |
92 | 92 | xmpp.on('chat', function(from, message) { |
93 | - if (config && config.globals && config.globals.keepalive_id == from) { | |
93 | + if (config && config.globals && (config.globals.keepalive_id == from)) { | |
94 | 94 | logger.verbose('Got keepalive message from ' + from); |
95 | 95 | sendMessage(from, config.globals.keepalive_response); |
96 | 96 | return; |