forcing all commands to lower case (#369)

This commit is contained in:
Minh
2025-09-02 13:51:26 +02:00
committed by GitHub
parent b62b15a21f
commit 8a55414143
3 changed files with 120 additions and 4 deletions
@@ -2,7 +2,7 @@ package com.bitchat.android.ui
import com.bitchat.android.mesh.BluetoothMeshService
import com.bitchat.android.model.BitchatMessage
import java.util.*
import java.util.Date
/**
* Handles processing of IRC-style commands
@@ -33,8 +33,7 @@ class CommandProcessor(
if (!command.startsWith("/")) return false
val parts = command.split(" ")
val cmd = parts.first()
val cmd = parts.first().lowercase()
when (cmd) {
"/j", "/join" -> handleJoinCommand(parts, myPeerID)
"/m", "/msg" -> handleMessageCommand(parts, meshService)