diff --git a/index.js b/index.js index 37c38cd..2533f1d 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ function pingMySelf() { return; } - sendMessage(config.globals.jid, "PING " + strftime('%F %T', new Date())); + sendMessage(config.globals.jid.replace(/\/.*/, ''), "PING " + strftime('%F %T', new Date())); } function xmppConnect() {