mirror of
https://github.com/MeshEnvy/lobbs.git
synced 2026-03-28 16:22:33 +01:00
fix: ingore @ mention in slash commands (closes #9)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user