3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 03:49:27 +01:00

update ergo to work with irc-go v0.1.0

This commit is contained in:
Shivaram Lingamneni 2022-01-17 02:04:36 -05:00
parent 74f3ea1d2e
commit e3e8136f85

View File

@ -83,7 +83,7 @@ func (m *MessageCache) Initialize(server *Server, serverTime time.Time, msgid st
if config.Server.Compatibility.forceTrailing && commandsThatMustUseTrailing[command] { if config.Server.Compatibility.forceTrailing && commandsThatMustUseTrailing[command] {
msg.ForceTrailing() msg.ForceTrailing()
} }
msg.Prefix = nickmask msg.Source = nickmask
msg.Command = command msg.Command = command
msg.Params = make([]string, len(params)) msg.Params = make([]string, len(params))
copy(msg.Params, params) copy(msg.Params, params)
@ -121,7 +121,7 @@ func (m *MessageCache) InitializeSplitMessage(server *Server, nickmask, accountN
msg.ForceTrailing() msg.ForceTrailing()
} }
msg.Prefix = nickmask msg.Source = nickmask
msg.Command = command msg.Command = command
if isTagmsg { if isTagmsg {
msg.Params = []string{target} msg.Params = []string{target}
@ -146,7 +146,7 @@ func (m *MessageCache) InitializeSplitMessage(server *Server, nickmask, accountN
if forceTrailing { if forceTrailing {
msg.ForceTrailing() msg.ForceTrailing()
} }
msg.Prefix = nickmask msg.Source = nickmask
msg.Command = command msg.Command = command
msg.Params = make([]string, 2) msg.Params = make([]string, 2)
msg.Params[0] = target msg.Params[0] = target