3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 13:09:23 +01:00

unreal: support TSCTL alltime

Closes #228.
This commit is contained in:
James Lu 2016-08-17 21:19:13 -07:00
parent 44744fa510
commit e9088792af

View File

@ -886,4 +886,12 @@ class UnrealProtocol(TS6BaseProtocol):
return super().handle_kill(numeric, command, new_args) return super().handle_kill(numeric, command, new_args)
def handle_tsctl(self, source, command, args):
"""Handles /TSCTL alltime requests."""
# <- :GL TSCTL alltime
if args[0] == 'alltime':
# XXX: We override notice() here because that abstraction doesn't allow messages from servers.
self._send(self.irc.sid, 'NOTICE %s :*** Server=%s time()=%d' % (source, self.irc.hostname(), time.time()))
Class = UnrealProtocol Class = UnrealProtocol