Permalink
Browse files

Parse server-time, just don't enable it

  • Loading branch information...
1 parent 786c7a1 commit 405ed4d6894a0a9ca5d69a40730e1953cbd32a02 @kylef kylef committed Mar 15, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 Classes/IRC/IRCMessage.m
View
@@ -53,17 +53,14 @@ - (void)parseLine:(NSString *)line
NSMutableString *s = [line mutableCopy];
-#if 0
if ([s hasPrefix:@"@t="]) {
+ // znc server-time
NSString* t = [s getToken];
t = [t substringFromIndex:3];
receivedAt = [[NSDate dateWithTimeIntervalSince1970: [t longLongValue]] retain];
} else {
receivedAt = [[NSDate date] retain];
}
-#else
- receivedAt = [[NSDate date] retain];
-#endif
if ([s hasPrefix:@":"]) {
NSString *t = [s getToken];

0 comments on commit 405ed4d

Please sign in to comment.