From 03ad8bd4e531c6a7bc7184f7fddf6b4ec7ee3502 Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Thu, 9 Aug 2012 01:23:27 +0100 Subject: [PATCH] Server-time spec uses time not t --- Classes/IRC/IRCMessage.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/IRC/IRCMessage.m b/Classes/IRC/IRCMessage.m index 42a9f8de9a..cd2edcdc24 100755 --- a/Classes/IRC/IRCMessage.m +++ b/Classes/IRC/IRCMessage.m @@ -66,11 +66,11 @@ - (void)parseLine:(NSString *)line NSMutableString *s = [line mutableCopy]; - if ([s hasPrefix:@"@t="]) { // znc server-time + if ([s hasPrefix:@"@time="]) { // server-time NSString *t; t = [s getToken]; - t = [t substringFromIndex:3]; + t = [t substringFromIndex:6]; self.receivedAt = [NSDate dateWithTimeIntervalSince1970:[t longLongValue]]; } else { @@ -171,4 +171,4 @@ - (NSString *)description return ms; } -@end \ No newline at end of file +@end