mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
hook for chat msg
This commit is contained in:
parent
07adb45503
commit
7741f762e2
1 changed files with 13 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
|||
var padutils = require('./pad_utils').padutils;
|
||||
var padcookie = require('./pad_cookie').padcookie;
|
||||
var Tinycon = require('tinycon/tinycon');
|
||||
var hooks = require('./pluginfw/hooks');
|
||||
|
||||
var chat = (function()
|
||||
{
|
||||
|
@ -162,7 +163,18 @@ var chat = (function()
|
|||
time: '4000'
|
||||
});
|
||||
Tinycon.setBubble(count);
|
||||
|
||||
var msg = {
|
||||
"authorName" : authorName,
|
||||
"text" : text,
|
||||
"sticky" : false,
|
||||
"time" : timeStr
|
||||
};
|
||||
hooks.aCallAll("chatNewMessage", {
|
||||
"authorName" : authorName,
|
||||
"text" : text,
|
||||
"sticky" : false,
|
||||
"time" : timeStr
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue