fix: incorrect variable name use in newroom tool

This commit is contained in:
Kumi 2023-12-07 16:31:19 +01:00
parent 11f11a369c
commit ab62ecb877
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -39,7 +39,7 @@ class Newroom(BaseTool):
with closing(self.bot.database.cursor()) as cursor: with closing(self.bot.database.cursor()) as cursor:
cursor.execute( cursor.execute(
"SELECT space_id FROM user_spaces WHERE user_id = ? AND active = TRUE", (event.sender,)) "SELECT space_id FROM user_spaces WHERE user_id = ? AND active = TRUE", (self.user,))
space = cursor.fetchone() space = cursor.fetchone()
if space: if space: