diff --git a/sopel/db.py b/sopel/db.py index 0608b4ec40..2b02220773 100644 --- a/sopel/db.py +++ b/sopel/db.py @@ -174,7 +174,7 @@ def unalias_nick(self, alias): nick_id = self.get_nick_id(alias, False) count = self.execute('SELECT COUNT(*) FROM nicknames WHERE nick_id = ?', [nick_id]).fetchone()[0] - if count == 0: + if count <= 1: raise ValueError('Given alias is the only entry in its group.') self.execute('DELETE FROM nicknames WHERE slug = ?', [alias.lower()])