Enables the jshint maximum line length check (80 chars) globally, and only overrides it in certain files.
This commit is contained in:
@@ -132,7 +132,8 @@ function setupListeners() {
|
||||
APP.xmpp.addListener(XMPPEvents.MUC_MEMBER_JOINED, function (from) {
|
||||
API.triggerEvent("participantJoined", {jid: from});
|
||||
});
|
||||
APP.xmpp.addListener(XMPPEvents.MESSAGE_RECEIVED, function (from, nick, txt, myjid, stamp) {
|
||||
APP.xmpp.addListener(XMPPEvents.MESSAGE_RECEIVED,
|
||||
function (from, nick, txt, myjid, stamp) {
|
||||
if (from != myjid)
|
||||
API.triggerEvent("incomingMessage",
|
||||
{"from": from, "nick": nick, "message": txt, "stamp": stamp});
|
||||
@@ -140,10 +141,12 @@ function setupListeners() {
|
||||
APP.xmpp.addListener(XMPPEvents.MUC_MEMBER_LEFT, function (jid) {
|
||||
API.triggerEvent("participantLeft", {jid: jid});
|
||||
});
|
||||
APP.xmpp.addListener(XMPPEvents.DISPLAY_NAME_CHANGED, function (jid, newDisplayName) {
|
||||
APP.xmpp.addListener(XMPPEvents.DISPLAY_NAME_CHANGED,
|
||||
function (jid, newDisplayName) {
|
||||
var name = displayName[jid];
|
||||
if(!name || name != newDisplayName) {
|
||||
API.triggerEvent("displayNameChange", {jid: jid, displayname: newDisplayName});
|
||||
API.triggerEvent("displayNameChange",
|
||||
{jid: jid, displayname: newDisplayName});
|
||||
displayName[jid] = newDisplayName;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user