Add ability to remove an appservice
This commit is contained in:
parent
9b57c89df6
commit
7857da8a0b
4 changed files with 30 additions and 0 deletions
|
@ -1528,6 +1528,15 @@ impl Rooms {
|
|||
));
|
||||
}
|
||||
}
|
||||
"unregister_appservice" => {
|
||||
if args.len() == 1 {
|
||||
db.admin.send(AdminCommand::UnregisterAppservice(args[0].to_owned()));
|
||||
} else {
|
||||
db.admin.send(AdminCommand::SendMessage(
|
||||
RoomMessageEventContent::text_plain("Missing appservice identifier"),
|
||||
));
|
||||
}
|
||||
}
|
||||
"list_appservices" => {
|
||||
db.admin.send(AdminCommand::ListAppservices);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue