This commit is contained in:
Luke Rogers 2013-09-04 22:59:58 +12:00
parent 242ba0d18d
commit f85bc3e935
2 changed files with 4 additions and 4 deletions

View file

@ -4,15 +4,15 @@ from util import hook
# CTCP responses
@hook.regex(r'^\x01VERSION\x01$')
def ctcp_version(notice=None):
def ctcp_version(inp, notice=None):
notice('\x01VERSION: CloudBot - http://git.io/cloudbotirc')
@hook.regex(r'^\x01PING\x01$')
def ctcp_ping(notice=None):
def ctcp_ping(inp, notice=None):
notice('\x01PING: PONG')
@hook.regex(r'^\x01TIME\x01$')
def ctcp_time(notice=None):
def ctcp_time(inp, notice=None):
notice('\x01TIME: The time is: %s' % time.strftime("%r", time.localtime()))

View file

@ -19,7 +19,7 @@ def invite(paraml, conn=None):
# Identify to NickServ (or other service)
@hook.event('004')
def onjoin(conn=None, bot=None):
def onjoin(paraml, 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')