Add a new hook after receiving new faction messages

This commit is contained in:
Bruno Barão
2013-03-12 12:33:44 +00:00
parent 400ab54787
commit a0bc896559
2 changed files with 10 additions and 3 deletions

View File

@ -152,6 +152,8 @@ window.chat.handleFaction = function(data, textStatus, jqXHR) {
chat.writeDataToHash(data, chat._factionData, false);
var oldMsgsWereAdded = old !== chat.getOldestTimestamp(true);
runHooks('factionChatDataAvailable', {raw: data, processed: chat._factionData});
window.chat.renderFaction(oldMsgsWereAdded);
if(data.result.length >= CHAT_FACTION_ITEMS) chat.needMoreMessages();