Change command.py to use call_limited

This commit is contained in:
jesopo 2018-08-28 16:35:07 +01:00
parent 2728a8422f
commit 672b22e62c

View file

@ -129,9 +129,10 @@ class Module(object):
args = " ".join(args_split)
server = event["server"]
user = event["user"]
self.bot.events.on("received").on("command").on(command).call(
1, user=user, server=server, target=target, buffer=buffer,
args=args, args_split=args_split, stdout=stdout, stderr=stderr,
self.bot.events.on("received").on("command").on(command
).call_limited(1, user=user, server=server,
target=target, buffer=buffer, args=args,
args_split=args_split, stdout=stdout, stderr=stderr,
command=command.lower(), is_channel=is_channel)
if not hook.kwargs.get("skip_out", False):
stdout.send()