Skip to content

Commit 896a238

Browse files
mkschulzeclaude
andcommitted
fix: restore bot user filtering lost during worktree merge
The prefix-match bot filtering (ninbot, jambot, ninjam) in ChannelStripArea was lost when worktree merges overwrote the file. Restored from commit eaaba37. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5a700ab commit 896a238

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

juce/ui/ChannelStripArea.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,16 @@ void ChannelStripArea::refreshFromUsers(const std::vector<NJClient::RemoteUserIn
386386
// Strip @IP suffix from username (e.g. "user@1.2.3.4" -> "user")
387387
juce::String userName(user.name);
388388
int atIdx = userName.lastIndexOfChar('@');
389-
if (atIdx > 0)
390-
userName = userName.substring(0, atIdx);
389+
juce::String cleanName = (atIdx > 0) ? userName.substring(0, atIdx) : userName;
390+
391+
// Hide known bot users from the mixer (shared list with companion page).
392+
// Prefix match handles variants like "ninbot_", "ninbot2", "Jambot_server".
393+
if (cleanName.startsWithIgnoreCase("ninbot")
394+
|| cleanName.startsWithIgnoreCase("jambot")
395+
|| cleanName.startsWithIgnoreCase("ninjam"))
396+
continue;
397+
398+
userName = cleanName;
391399

392400
if (user.channels.size() <= 1)
393401
{

0 commit comments

Comments
 (0)