diff options
| author | 2018-08-28 16:35:07 +0100 | |
|---|---|---|
| committer | 2018-08-28 16:35:07 +0100 | |
| commit | 672b22e62c4d76caceaed2a14c7708d148b525e4 (patch) | |
| tree | 3702869287217465512c8793b6b3f29f22d88226 /modules | |
| parent | change IRCServer.Server.__str__ to return hostname:port instead of full __repr__ (diff) | |
| signature | ||
Change command.py to use call_limited
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/commands.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/commands.py b/modules/commands.py index e75ae4d1..fbce393d 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -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() |
