Send logged messages when joining a channel
This commit is contained in:
parent
a4e9eeefed
commit
62a69dfd44
3 changed files with 39 additions and 29 deletions
|
@ -81,6 +81,8 @@ func (i *ircHandler) join(msg *irc.Message) {
|
|||
channelStore.AddUser(msg.Nick, i.client.Host, msg.Params[0])
|
||||
|
||||
if msg.Nick == i.client.GetNick() {
|
||||
i.session.sendLastMessages(i.client.Host, msg.Params[0], 50)
|
||||
|
||||
go i.session.user.AddChannel(storage.Channel{
|
||||
Server: i.client.Host,
|
||||
Name: msg.Params[0],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue