From 79fe991daf16d9cbbb3b24287c8a394ae8f4d07f Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 22 Apr 2020 22:40:22 +0300 Subject: [PATCH] Force instance ID to be lowercase when updating --- maubot/instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot/instance.py b/maubot/instance.py index 64cddab..22bca17 100644 --- a/maubot/instance.py +++ b/maubot/instance.py @@ -222,7 +222,7 @@ class PluginInstance: def update_id(self, new_id: str) -> None: if new_id is not None and new_id != self.id: - self.db_instance.id = new_id + self.db_instance.id = new_id.lower() def update_config(self, config: str) -> None: if not config or self.db_instance.config == config: