rem: return s.@type != 'error' && s.body.text() != undefined; 
add: return ((s.@type != 'error' && s.body.text() != undefined) || (s.@type == 'error')); 
context: function initNetworkReactions() {    channel = XMPP.createChannel(            <query xmlns="http://jabber.org/protocol/disco#info">            <feature var="http://jabber.org/protocol/muc"/>            <feature var="http://jabber.org/protocol/muc#user"/>            <feature var="http://jabber.org/protocol/xhtml-im"/>            <feature var="http://jabber.org/protocol/chatstates"/>            </query>);    channel.on({        event     : 'message',        direction : 'in',        stanza    : function(s) {            return ((s.@type != 'error' && s.body != undefined) ||                    (s.@type == 'error'))        }    }, function(message) { seenDisplayableMessage(message); });    channel.on({        event     : 'message',        direction : 'out',        stanza    : function(s) {            return s.body.text() != undefined && s.@type != 'groupchat';        }    }, function(message) { seenDisplayableMessage(message) });        channel.on({        event     : 'message',        direction : 'out',        stanza    : function(s) {            return s.ns_chatstates::active != undefined;        }    }, function(message) { seenOutgoingChatActivation(message); });        channel.on({        event  : 'message',        stanza : function(s) {            return s.@type != 'error' && s.body.text() != undefined;        }    }, function(message) { seenCachableMessage(message); });        channel.on({        event     : 'presence',        direction : 'out',        stanza    : function(s) {            return s.ns_muc::x.length() > 0 && s.@type != 'unavailable';        }    }, function(presence) { sentMUCPresence(presence) });    channel.on({        event     : 'presence',        direction : 'out',        stanza    : function(s) {            return (s.@type == undefined || s.@type == 'unavailable') &&                s.ns_muc::x == undefined && s.@to == undefined;        }    }, function(presence) { sentAvailablePresence(presence) });}
meta: 1705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1705/efd833d3f086d4bc514e4898c4ebc50a8c310f7d/sameplace.js/buggy/chrome/content/sameplace.js