Implement sending of EventJoinLeave both to and from Mumble (#1915)

* mumble: Implement sending of EventJoinLeave both to and from Mumble (Closes #1435)

* mumble: Break handleUserChange into two functions
This commit is contained in:
Sebastian P
2022-11-27 00:17:11 +01:00
committed by GitHub
parent 6d5a3dff22
commit 6da9d567dc
3 changed files with 85 additions and 20 deletions

View File

@@ -93,7 +93,7 @@ func (b *Bmumble) JoinChannel(channel config.ChannelInfo) error {
func (b *Bmumble) Send(msg config.Message) (string, error) {
// Only process text messages
b.Log.Debugf("=> Received local message %#v", msg)
if msg.Event != "" && msg.Event != config.EventUserAction {
if msg.Event != "" && msg.Event != config.EventUserAction && msg.Event != config.EventJoinLeave {
return "", nil
}