Skip to content

Commit

Permalink
Officially support the server-time CAP extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
emsquared committed Aug 5, 2012
1 parent 363c972 commit 410ffa5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Classes/IRC/IRCClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -4434,11 +4434,14 @@ - (void)resumeCap

- (BOOL)isCapAvailable:(NSString *)cap
{
// Information about several of these supported CAP
// extensions can be found at: http://ircv3.atheme.org

return ([cap isEqualNoCase:@"identify-msg"] ||
[cap isEqualNoCase:@"identify-ctcp"] ||
[cap isEqualNoCase:@"multi-prefix"] ||
[cap isEqualNoCase:@"userhost-in-names"] ||
//[cap isEqualNoCase:@"znc.in/server-time"] ||
[cap isEqualNoCase:@"server-time"] ||
([cap isEqualNoCase:@"sasl"] && NSObjectIsNotEmpty(self.config.nickPassword)));
}

Expand Down Expand Up @@ -4512,6 +4515,7 @@ - (void)receiveCapacityOrAuthenticationRequest:(IRCMessage *)m
[authenticateData appendData:[self.config.nickPassword dataUsingEncoding:self.config.encoding allowLossyConversion:YES]];

NSString *authString = [authenticateData base64EncodingWithLineLength:400];

NSArray *authStrings = [authString componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]];

for (NSString *string in authStrings) {
Expand Down
4 changes: 2 additions & 2 deletions Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<key>TXBundleBuildCodeName</key>
<string>Turtle Soup</string>
<key>TXBundleBuildNumber</key>
<string>12262</string>
<string>12263</string>
<key>TXBundleBuildReference</key>
<string>2.1.1-273-gde0b65a-appstore</string>
<string>2.1.1-274-g363c972-appstore</string>
</dict>
</plist>

0 comments on commit 410ffa5

Please sign in to comment.