Ver Fonte

Bugfix. Check if from exists

JC Brand há 12 anos atrás
pai
commit
7a46e0ed73
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      Libraries/strophe.muc.js

+ 1 - 0
Libraries/strophe.muc.js

@@ -75,6 +75,7 @@
                 this._muc_handler = this._connection.addHandler(function(stanza) {
                     var from, handler, handlers, id, roomname, x, xmlns, xquery, _i, _len;
                     from = stanza.getAttribute('from');
+                    if (!from) { return true; }
                     roomname = from.split("/")[0];
                     if (!_this.rooms[roomname]) { return true; }
                     room = _this.rooms[roomname];