aboutsummaryrefslogtreecommitdiff
path: root/modules/ctcp.py
diff options
context:
space:
mode:
authorGravatar dngfx2018-08-31 10:50:37 +0100
committerGravatar dngfx2018-08-31 10:50:37 +0100
commitabed9cf4ea71dcbad2dd2c049683b8d14b942e09 (patch)
tree3e40caf63fa7e1500469f4ad9a0c45c51808aad4 /modules/ctcp.py
parentFix 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.py7
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)