added filter:messaging.parse hook

v1.18.x
psychobunny 11 years ago
parent 46e29dfb2b
commit 45a5b88824

@ -97,7 +97,19 @@ var db = require('./database'),
username = '<span class="chat-user"> ' + toUserData.username + '</span>: ';
}
callback(picture + username + parsed);
var messageData = {
message: message,
parsed: parsed,
fromuid: fromuid,
myuid: myuid,
toUserData: toUserData,
myUserData: myUserData,
parsedMessage: picture + username + parsed
};
plugins.fireHook('filter:messaging.parse', messageData, function(err, messageData) {
callback(messageData.parsedMessage);
});
});
};

Loading…
Cancel
Save