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
+2 -2
View File
@@ -1250,7 +1250,7 @@
customEventDetailsViewClass = eventDetailsViewClass;
}
- (BOOL)isIRCStyleCommand:(NSString*)string
- (BOOL)sendAsIRCStyleCommandIfPossible:(NSString*)string
{
// Check whether the provided text may be an IRC-style command
if ([string hasPrefix:@"/"] == NO || [string hasPrefix:@"//"] == YES)
@@ -3375,7 +3375,7 @@
- (void)roomInputToolbarView:(MXKRoomInputToolbarView*)toolbarView sendTextMessage:(NSString*)textMessage
{
// Handle potential IRC commands in typed string
if ([self isIRCStyleCommand:textMessage] == NO)
if ([self sendAsIRCStyleCommandIfPossible:textMessage] == NO)
{
// Send text message in the current room
[self sendTextMessage:textMessage];