m_spanningtree Fix fake direction detection for commands
m_spanningtree Extract logic that finds the source user for an incoming command into a function