diff options
| author | 2018-08-31 10:50:37 +0100 | |
|---|---|---|
| committer | 2018-08-31 10:50:37 +0100 | |
| commit | abed9cf4ea71dcbad2dd2c049683b8d14b942e09 (patch) | |
| tree | 3e40caf63fa7e1500469f4ad9a0c45c51808aad4 /modules/ctcp.py | |
| parent | Fix a copy paste fail in IRCLineHandler that caused PARTs to be handled as QUITs (diff) | |
Reformat
Diffstat (limited to 'modules/ctcp.py')
| -rw-r--r-- | modules/ctcp.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/ctcp.py b/modules/ctcp.py index 031b39cd..a2b1fefb 100644 --- a/modules/ctcp.py +++ b/modules/ctcp.py @@ -1,5 +1,6 @@ import datetime + class Module(object): def __init__(self, bot): bot.events.on("received").on("message").on("private").hook( @@ -18,10 +19,10 @@ class Module(object): ctcp_response = None if ctcp_command == "VERSION": ctcp_response = self.bot.config.get("ctcp-version", - "BitBot (https://github.com/jesopo/bitbot)") + "BitBot (https://github.com/jesopo/bitbot)") elif ctcp_command == "SOURCE": ctcp_response = self.bot.config.get("ctcp-source", - "https://github.com/jesopo/bitbot") + "https://github.com/jesopo/bitbot") elif ctcp_command == "PING": ctcp_response = " ".join(ctcp_args_split) elif ctcp_command == "TIME": @@ -29,4 +30,4 @@ class Module(object): if ctcp_response: event["user"].send_ctcp_response(ctcp_command, - ctcp_response) + ctcp_response) |
