fix deletion of keeps

This commit is contained in:
vulpine 2020-12-11 10:09:09 -05:00
parent 402b6b1bd3
commit 59a76e1440
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ async def addkeep(self,c,n,m):
await self.message(c,'[\x036keep\x0f] keep added!')
async def rmkeep(self,c,n,m):
if n in self.channels[self.rmkeepchan]['modes']['o']:
if n in self.channels[self.rmkeepchan].users and 'o' in self.channels[self.rmkeepchan].users[n].modes:
co = m.strip().split(' ')
if len(co) < 2:
await self.message(c,'[\x036keep\x0f] wrong syntax')