From 4d1ee37ac425a14298dada2ec1227024685cf6ff Mon Sep 17 00:00:00 2001 From: acidvegas Date: Thu, 29 Jun 2023 13:28:24 -0400 Subject: [PATCH] Fixed error not having channel arguement --- bots/phalanx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bots/phalanx.py b/bots/phalanx.py index de38723..fb35aa8 100644 --- a/bots/phalanx.py +++ b/bots/phalanx.py @@ -146,7 +146,7 @@ class clone: for item in settings.access: await self.sendmsg(target, color(item, yellow)) else: - await self.error('invalid command', 'usage: .access <+/->') + await self.error(chan, 'invalid command', 'usage: .access <+/->') if is_access(ident): if args[0] == '.create' and self.identity['nick'] == 'phalanx' and len(args) >= 2: if len(self.clones) < 500: @@ -175,7 +175,7 @@ class clone: elif args[0] == '.raw' and len(args) >= 3: target = args[1] if target == 'phalanx' and not is_admin(ident): - self.error('yeah right...') + self.error(chan 'yeah right...') data = ' '.join(args[2:]) if '#5000' not in data: if target == self.identity['nick'] or (target == '*' and is_admin(ident)):