oops forgot to include a parameter

This commit is contained in:
William Kray
2024-10-19 09:07:18 -07:00
parent 6c85e50b1c
commit b47189550a
+2 -2
View File
@@ -342,7 +342,7 @@ class CommunityBot(Plugin):
except Exception as e: except Exception as e:
self.log.error(f"Flagged message could not be redacted: {e}") self.log.error(f"Flagged message could not be redacted: {e}")
await self.ban_this_user(evt.sender) await self.ban_this_user(evt.sender, all_rooms=True)
if not self.config["track_messages"] or not self.config["track_users"]: if not self.config["track_messages"] or not self.config["track_users"]:
pass pass
@@ -553,7 +553,7 @@ class CommunityBot(Plugin):
if evt.sender in self.config["admins"] or evt.sender in self.config["moderators"]: if evt.sender in self.config["admins"] or evt.sender in self.config["moderators"]:
user = mxid user = mxid
msg = await evt.respond("starting the ban...") msg = await evt.respond("starting the ban...")
results_map = await self.ban_this_user(user) results_map = await self.ban_this_user(user, all_rooms=True)
results = "the following users were kicked and banned:<p><code>{ban_list}</code></p>the following errors were \ results = "the following users were kicked and banned:<p><code>{ban_list}</code></p>the following errors were \