Add onPreChangeMedia and improve refreshing

This commit is contained in:
Calvin Montgomery 2014-07-09 21:46:45 -07:00
parent 3f959087af
commit f36d2b0258
5 changed files with 61 additions and 28 deletions

View file

@ -131,7 +131,7 @@ ChatModule.prototype.handleChatMsg = function (user, data) {
}
data.meta = meta;
this.channel.checkModules("onUserChat", [user, data], function (err, result) {
this.channel.checkModules("onUserPreChat", [user, data], function (err, result) {
if (result === ChannelModule.PASSTHROUGH) {
self.processChatMsg(user, data);
}