mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Rename isIRCStyleCommand to sendAsIRCStyleCommandIfPossible
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user