Skip to content

Commit

Permalink
Fix reading errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
emsquared committed Aug 12, 2012
1 parent ac481a1 commit 626d1f7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
13 changes: 8 additions & 5 deletions Classes/IRC/IRCClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -4562,16 +4562,19 @@ - (void)receiveNumericReply:(IRCMessage *)m

break;
}
case 2 ... 4:
case 2:
case 3:
{
if ([m.sender.nick isNickname] == NO) {
[self.config setServer:m.sender.nick];
}

[self printReply:m];

break;
}
case 4:
{
[self.config setServer:[m paramAt:1]];

break;
}
case 5:
{
[self.isupport update:[m sequence:1] client:self];
Expand Down
6 changes: 3 additions & 3 deletions Classes/Library/TLOFileLogger.m
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ - (NSDictionary *)propertyList /* @private */
if (self.writePlainText == NO) {
NSError *readError;

NSData *rawData = [NSString stringWithContentsOfFile:self.filename
encoding:NSUTF8StringEncoding
error:&readError];
NSData *rawData = [NSData dataWithContentsOfFile:self.filename
options:NSDataReadingUncached
error:&readError];

if (readError) {
LogToConsole(@"Error Reading Property List: %@", [readError localizedDescription]);
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>12350</string>
<string>12354</string>
<key>TXBundleBuildReference</key>
<string>2.1.1-rc1-309-g812b4f4-appstore</string>
<string>2.1.1-rc1-310-gac481a1-appstore</string>
</dict>
</plist>

0 comments on commit 626d1f7

Please sign in to comment.