1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-10 16:10:55 +00:00
* Fixed: Exclude the player settings menu from theming when using a light theme to avoid rendering issues.
* API Added: `addNotice(room, message)` method for the module `site.chat`.
* API Fixed: Add `addNotice()` and `sendMessage()` stubs to the `site.chat` module in clips flavor.
This commit is contained in:
SirStendec 2021-07-12 20:00:14 -04:00
parent 0c25692afd
commit cfd11c8e9e
4 changed files with 41 additions and 2 deletions

View file

@ -1922,6 +1922,30 @@ export default class ChatHook extends Module {
}
addNotice(room, message) {
if ( ! room )
return false;
if ( room.startsWith('#') )
room = room.slice(1);
room = room.toLowerCase();
for(const inst of this.ChatService.instances) {
if ( inst.props.channelLogin.toLowerCase() === room ) {
inst.addMessage({
type: this.chat_types.Notice,
message
});
return true;
}
}
return false;
}
sendMessage(room, message) {
const service = this.ChatService.first;