Add support for CTCP TIME

This commit is contained in:
nyuszika7h 2016-08-13 23:00:03 +02:00
parent 7cbc86cc98
commit 67e6d086a2

View File

@ -6014,6 +6014,8 @@ def relay(cli, nick, chan, rest):
reply = "\u0001VERSION lykos, Python {0} -- https://github.com/lykoss/lykos\u0001".format(platform.python_version()) reply = "\u0001VERSION lykos, Python {0} -- https://github.com/lykoss/lykos\u0001".format(platform.python_version())
cli.notice(nick, reply) cli.notice(nick, reply)
return return
elif rest == "\u0001TIME\u0001":
cli.notice(nick, "\u0001TIME {0}\u0001".format(time.strftime('%a, %d %b %Y %T %z', time.localtime())))
if var.PHASE not in var.GAME_PHASES: if var.PHASE not in var.GAME_PHASES:
return return