mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 05:36:06 +00:00
Use the correct reference to Mjolnir's client
This commit is contained in:
parent
b2790c2866
commit
40113a0760
@ -93,7 +93,7 @@ export async function applyUserBans(lists: BanList[], roomIds: string[], mjolnir
|
|||||||
if (bansApplied > 0) {
|
if (bansApplied > 0) {
|
||||||
const html = `<font color="#00cc00"><b>Banned ${bansApplied} people</b></font>`;
|
const html = `<font color="#00cc00"><b>Banned ${bansApplied} people</b></font>`;
|
||||||
const text = `Banned ${bansApplied} people`;
|
const text = `Banned ${bansApplied} people`;
|
||||||
await this.client.sendMessage(config.managementRoom, {
|
await mjolnir.client.sendMessage(config.managementRoom, {
|
||||||
msgtype: "m.notice",
|
msgtype: "m.notice",
|
||||||
body: text,
|
body: text,
|
||||||
format: "org.matrix.custom.html",
|
format: "org.matrix.custom.html",
|
||||||
|
Loading…
Reference in New Issue
Block a user