diff --git a/modules/coin.py b/modules/coin.py index a896efa..4fb4c62 100644 --- a/modules/coin.py +++ b/modules/coin.py @@ -36,6 +36,9 @@ async def send(self,c,n,m): to = self.users[m.pop(0).lower()].account except: await self.message(c, '[\x036coin\x0f] that user is not logged in. refusing so coins are not lost') + if to == '': + await self.message(c, '[\x036coin\x0f] they must authenticate with nickserv.') + return amount = round(float(m.pop(0)),2) message = ' '.join(m) sender = self.users[n.lower()].account @@ -52,6 +55,8 @@ async def balance(self,c,n,m): m = self.users[m.lower()].account except: m = m + if m == '': + m = m bals = await bal(self) if m in bals: latest = self.ledger.find_one(to=m,order_by='-id')