Change command.py to use call_limited
This commit is contained in:
parent
2728a8422f
commit
672b22e62c
1 changed files with 4 additions and 3 deletions
|
@ -129,9 +129,10 @@ class Module(object):
|
||||||
args = " ".join(args_split)
|
args = " ".join(args_split)
|
||||||
server = event["server"]
|
server = event["server"]
|
||||||
user = event["user"]
|
user = event["user"]
|
||||||
self.bot.events.on("received").on("command").on(command).call(
|
self.bot.events.on("received").on("command").on(command
|
||||||
1, user=user, server=server, target=target, buffer=buffer,
|
).call_limited(1, user=user, server=server,
|
||||||
args=args, args_split=args_split, stdout=stdout, stderr=stderr,
|
target=target, buffer=buffer, args=args,
|
||||||
|
args_split=args_split, stdout=stdout, stderr=stderr,
|
||||||
command=command.lower(), is_channel=is_channel)
|
command=command.lower(), is_channel=is_channel)
|
||||||
if not hook.kwargs.get("skip_out", False):
|
if not hook.kwargs.get("skip_out", False):
|
||||||
stdout.send()
|
stdout.send()
|
||||||
|
|
Loading…
Reference in a new issue