diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-21 14:03:31 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-06-21 14:03:31 -0700 |
| commit | 21581958c38861f3a62ef7c27d0a8a6f4db2a1f8 (patch) | |
| tree | feb1eb06405215ccd6dabe6ee96ddb7c0b5027d2 /hotline/transaction_handlers.go | |
| parent | 0fcfa5d54b166559c0ca31932a71a7eabb79c72c (diff) | |
Refactor notifyOthers
Diffstat (limited to 'hotline/transaction_handlers.go')
| -rw-r--r-- | hotline/transaction_handlers.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hotline/transaction_handlers.go b/hotline/transaction_handlers.go index 5763967..cad3370 100644 --- a/hotline/transaction_handlers.go +++ b/hotline/transaction_handlers.go @@ -964,7 +964,7 @@ func HandleTranAgreed(cc *ClientConn, t *Transaction) (res []Transaction, err er cc.AutoReply = []byte{} } - cc.notifyOthers( + for _, t := range cc.notifyOthers( *NewTransaction( tranNotifyChangeUser, nil, NewField(fieldUserName, cc.UserName), @@ -972,7 +972,9 @@ func HandleTranAgreed(cc *ClientConn, t *Transaction) (res []Transaction, err er NewField(fieldUserIconID, *cc.Icon), NewField(fieldUserFlags, *cc.Flags), ), - ) + ) { + cc.Server.outbox <- t + } res = append(res, cc.NewReply(t)) |