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)
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue