Permalink
Browse files

Officially support the server-time CAP extension.

  • Loading branch information...
1 parent 363c972 commit 410ffa564f97bf0bfabf670a3e9995f4c4161838 @emsquared emsquared committed Aug 5, 2012
Showing with 7 additions and 3 deletions.
  1. +5 −1 Classes/IRC/IRCClient.m
  2. +2 −2 Resources/Info.plist
View
@@ -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"] ||
@kaniini

kaniini Aug 5, 2012

You should support both identifiers for legacy compatibility reasons in my opinion.

@kylef

kylef Aug 5, 2012

Contributor

znc.in/server-time was only supported in development versions of ZNC.

([cap isEqualNoCase:@"sasl"] && NSObjectIsNotEmpty(self.config.nickPassword)));
}
@@ -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) {
View
@@ -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.