diff --git a/index.js b/index.js
index 50a5467..b653cff 100644
--- a/index.js
+++ b/index.js
@@ -70,7 +70,8 @@ if (fs.existsSync(configPath)) {
     // check for chat messages
     if (stanza.is('message') && stanza.attrs.type === 'chat') {
       // store from jid, and message contents
-      const from = stanza.attrs.from;
+      const rawfrom = stanza.attrs.from;
+      const from = rawfrom.split('/')[0];
       const body = stanza.getChildText('body');
 
       // show them to the user in console