Cleaner PONG
FossilOrigin-Name: aa89dd371b37464a34e19a8b50e5cf9c63362ba9db7a1322c1a3453b34a37e2b
This commit is contained in:
parent
533177729a
commit
90f49ba82a
1 changed files with 2 additions and 2 deletions
|
@ -232,7 +232,7 @@
|
||||||
if ([components count] == 2 &&
|
if ([components count] == 2 &&
|
||||||
[[components firstObject] isEqual: @"PING"]) {
|
[[components firstObject] isEqual: @"PING"]) {
|
||||||
OFMutableString *s = [[line mutableCopy] autorelease];
|
OFMutableString *s = [[line mutableCopy] autorelease];
|
||||||
[s replaceOccurrencesOfString: @"PING"
|
[s replaceCharactersInRange: of_range(0, 4)
|
||||||
withString: @"PONG"];
|
withString: @"PONG"];
|
||||||
[self sendLine: s];
|
[self sendLine: s];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue