From fb62640cccf711d4ea05addfbe1d51430c40e243 Mon Sep 17 00:00:00 2001 From: Fletcher Boyd Date: Wed, 4 Sep 2013 18:31:46 +0800 Subject: [PATCH] Possibly broke, fixed formatting. --- plugins/core_ctcp.py | 6 +++--- plugins/core_misc.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/core_ctcp.py b/plugins/core_ctcp.py index 523a4e4..7312adf 100755 --- a/plugins/core_ctcp.py +++ b/plugins/core_ctcp.py @@ -4,15 +4,15 @@ from util import hook # CTCP responses @hook.regex(r'^\x01VERSION\x01$') -def ctcp_version(inp, notice=None): +def ctcp_version(notice=None): notice('\x01VERSION: CloudBot - http://git.io/cloudbotirc') @hook.regex(r'^\x01PING\x01$') -def ctcp_ping(inp, notice=None): +def ctcp_ping(notice=None): notice('\x01PING: PONG') @hook.regex(r'^\x01TIME\x01$') -def ctcp_time(inp, notice=None): +def ctcp_time(notice=None): notice('\x01TIME: The time is: %s' % time.strftime("%r", time.localtime())) diff --git a/plugins/core_misc.py b/plugins/core_misc.py index 4fb082f..27c264a 100755 --- a/plugins/core_misc.py +++ b/plugins/core_misc.py @@ -19,7 +19,7 @@ def invite(paraml, conn=None): # Identify to NickServ (or other service) @hook.event('004') -def onjoin(paraml, conn=None, bot=None): +def onjoin(conn=None, bot=None): nickserv_password = conn.conf.get('nickserv_password', '') nickserv_name = conn.conf.get('nickserv_name', 'nickserv') nickserv_command = conn.conf.get('nickserv_command', 'IDENTIFY %s')