Rename isIRCStyleCommand to sendAsIRCStyleCommandIfPossible

This commit is contained in:
aringenbach
2022-07-12 10:37:29 +02:00
parent e00a4631eb
commit d9554e3d8a
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -1228,7 +1228,7 @@ static CGSize kThreadListBarButtonItemImageSize;
}
}
- (BOOL)isIRCStyleCommand:(NSString*)string
- (BOOL)sendAsIRCStyleCommandIfPossible:(NSString*)string
{
// Override the default behavior for `/join` command in order to open automatically the joined room
@@ -1271,7 +1271,7 @@ static CGSize kThreadListBarButtonItemImageSize;
}
return YES;
}
return [super isIRCStyleCommand:string];
return [super sendAsIRCStyleCommandIfPossible:string];
}
- (void)setKeyboardHeight:(CGFloat)keyboardHeight
@@ -4816,7 +4816,7 @@ static CGSize kThreadListBarButtonItemImageSize;
message = attributedTextMessage.string;
}
// Try to send the slash command
isMessageAHandledCommand = [self isIRCStyleCommand:message];
isMessageAHandledCommand = [self sendAsIRCStyleCommandIfPossible:message];
}
if (!isMessageAHandledCommand)