Skip to content

Commit

Permalink
It should be /ctcp <nick> <comand> not /ctcp <command> <nick>
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Feb 19, 2012
1 parent 7d58912 commit c0c78ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/IRC/IRCClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -1995,10 +1995,10 @@ - (BOOL)sendCommand:(id)str completeTarget:(BOOL)completeTarget target:(NSString
}
case 32: // Command: CTCP
{
NSString *subCommand = [s.getToken.string uppercaseString];
targetChannelName = s.getToken.string;

if (NSObjectIsNotEmpty(subCommand)) {
targetChannelName = s.getToken.string;
if (NSObjectIsNotEmpty(targetChannelName)) {
NSString *subCommand = [s.getToken.string uppercaseString];

if ([subCommand isEqualToString:IRCCI_PING]) {
[self sendCTCPPing:targetChannelName];
Expand Down

0 comments on commit c0c78ae

Please sign in to comment.