removed federation, closes #12

This commit is contained in:
Aine
2022-08-29 19:58:54 +03:00
parent e52de55e1a
commit 505a1b42d7
6 changed files with 4 additions and 14 deletions

View File

@@ -124,11 +124,6 @@ func (b *Bot) handleCommand(ctx context.Context, evt *event.Event, commandSlice
return
}
// ignore requests over federation if disabled
if !b.federation && evt.Sender.Homeserver() != b.lp.GetClient().UserID.Homeserver() {
return
}
if !cmd.allowed(evt.Sender, evt.RoomID) {
b.SendNotice(ctx, evt.RoomID, "not allowed to do that, kupo")
return