From 789d09d88fd953bb0b2bdc90f219c3e71db997f9 Mon Sep 17 00:00:00 2001 From: xfnw Date: Fri, 24 Jul 2020 01:26:33 +0000 Subject: [PATCH] why tf was sizelog being tracked --- .gitignore | 2 ++ modules/invite.py | 6 ++++++ sizelog | 55 ----------------------------------------------- 3 files changed, 8 insertions(+), 55 deletions(-) delete mode 100644 sizelog diff --git a/.gitignore b/.gitignore index fdc8756..55fb785 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ *.db *.pyc *.db-journal +sizelog +*journal diff --git a/modules/invite.py b/modules/invite.py index 3c8c068..ec2b68c 100644 --- a/modules/invite.py +++ b/modules/invite.py @@ -9,6 +9,12 @@ async def invite(self, channel, by): self.t = time.time()+1 await self.join(channel) else: + if self.chandb.find_one(name=channel): + self.t = time.time()+1 + await self.join(channel) + print('whee invited to {} by {}'.format(channel,by)) + return + print('ive been invited but invites are disabled') diff --git a/sizelog b/sizelog deleted file mode 100644 index 6c14391..0000000 --- a/sizelog +++ /dev/null @@ -1,55 +0,0 @@ -2172 -2172 -2332 -2528 -2732 -2956 -3192 -3416 -3640 -3848 -4080 -4132 -4172 -4200 -4208 -4240 -4248 -4252 -4256 -4260 -4264 -4276 -4296 -4324 -4384 -4420 -4460 -4496 -4528 -4544 -4544 -4556 -4604 -4696 -4732 -4744 -4776 -4776 -4776 -4776 -4784 -4792 -4800 -4816 -4824 -4844 -4880 -4896 -4928 -4972 -4996 -5072 -5108 -5144 -5204