forked from External/ergo
fix #1449
INVITE playback (#1409) was buggy, due to the double use of (Item).Params[0] for the channel name and the recipient nick. Stuff the channel name in (Item).Message.Message instead.
This commit is contained in:
parent
9033d97c6f
commit
853bb12c29
2 changed files with 16 additions and 10 deletions
|
|
@ -1537,11 +1537,10 @@ func (channel *Channel) Invite(invitee *Client, inviter *Client, rb *ResponseBuf
|
|||
details := inviter.Details()
|
||||
tDetails := invitee.Details()
|
||||
tnick := invitee.Nick()
|
||||
message := utils.MakeMessage("")
|
||||
message := utils.MakeMessage(chname)
|
||||
item := history.Item{
|
||||
Type: history.Invite,
|
||||
Message: message,
|
||||
Params: [1]string{chname},
|
||||
}
|
||||
|
||||
for _, member := range channel.Members() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue