Skip to content

Commit

Permalink
Server-time spec uses time not t
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Aug 9, 2012
1 parent ad249d8 commit 03ad8bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/IRC/IRCMessage.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -171,4 +171,4 @@ - (NSString *)description
return ms;
}

@end
@end

0 comments on commit 03ad8bd

Please sign in to comment.