Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Parse server-time, just don't enable it

  • Loading branch information...
commit 405ed4d6894a0a9ca5d69a40730e1953cbd32a02 1 parent 786c7a1
@kylef kylef authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 Classes/IRC/IRCMessage.m
View
5 Classes/IRC/IRCMessage.m
@@ -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];
Please sign in to comment.
Something went wrong with that request. Please try again.