diff options
| author | 2018-08-31 10:50:37 +0100 | |
|---|---|---|
| committer | 2018-08-31 10:50:37 +0100 | |
| commit | abed9cf4ea71dcbad2dd2c049683b8d14b942e09 (patch) | |
| tree | 3e40caf63fa7e1500469f4ad9a0c45c51808aad4 /modules/perform.py | |
| parent | Fix a copy paste fail in IRCLineHandler that caused PARTs to be handled as QUITs (diff) | |
| signature | ||
Reformat
Diffstat (limited to 'modules/perform.py')
| -rw-r--r-- | modules/perform.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/perform.py b/modules/perform.py index 65d0eb23..bb94ca63 100644 --- a/modules/perform.py +++ b/modules/perform.py @@ -1,5 +1,6 @@ import EventManager + class Module(object): def __init__(self, bot): bot.events.on("received").on("numeric").on("001").hook( @@ -11,6 +12,6 @@ class Module(object): command = command.split("%%") for j, part in enumerate(command[:]): command[j] = part.replace("%nick%", event["server" - ].original_nickname) + ].original_nickname) command = "%".join(command) event["server"].send(command) |
