Possibly broke, fixed formatting.

This commit is contained in:
Fletcher Boyd 2013-09-04 18:31:46 +08:00
parent b08bc570d1
commit fb62640ccc
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(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()))