1
mirror of git://git.acid.vegas/archive.git synced 2024-11-21 15:46:39 +00:00

Fixed error not having channel arguement

This commit is contained in:
Dionysus 2023-06-29 13:28:24 -04:00
parent 404e60cc66
commit 4d1ee37ac4
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -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 <+/-><host>')
await self.error(chan, 'invalid command', 'usage: .access <+/-><host>')
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)):