fix: ingore @ mention in slash commands (closes #9)

This commit is contained in:
Ben Allfree
2026-02-18 04:22:38 -08:00
parent 06f032476d
commit b60527d92a

View File

@@ -138,7 +138,7 @@ ProcessMessage LoBBSModule::handleReceived(const meshtastic_MeshPacket &mp) {
// Check for @mention mail sending BEFORE tokenizing (authenticated users
// only) This must happen before strtok destroys the buffer
if (isAuthenticated && strchr(msgBuffer, '@')) {
if (isAuthenticated && msgBuffer[0] != '/' && strchr(msgBuffer, '@')) {
LOG_DEBUG("Processing @mention mail from node=0x%0x", mp.from);
// Extract message content and find all @mentions