From e3e8136f8578ee0e069077d7d80fb3fb5154b863 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 17 Jan 2022 02:04:36 -0500 Subject: [PATCH] update ergo to work with irc-go v0.1.0 --- irc/message_cache.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/irc/message_cache.go b/irc/message_cache.go index 16ac168c..cde8b68d 100644 --- a/irc/message_cache.go +++ b/irc/message_cache.go @@ -83,7 +83,7 @@ func (m *MessageCache) Initialize(server *Server, serverTime time.Time, msgid st if config.Server.Compatibility.forceTrailing && commandsThatMustUseTrailing[command] { msg.ForceTrailing() } - msg.Prefix = nickmask + msg.Source = nickmask msg.Command = command msg.Params = make([]string, len(params)) copy(msg.Params, params) @@ -121,7 +121,7 @@ func (m *MessageCache) InitializeSplitMessage(server *Server, nickmask, accountN msg.ForceTrailing() } - msg.Prefix = nickmask + msg.Source = nickmask msg.Command = command if isTagmsg { msg.Params = []string{target} @@ -146,7 +146,7 @@ func (m *MessageCache) InitializeSplitMessage(server *Server, nickmask, accountN if forceTrailing { msg.ForceTrailing() } - msg.Prefix = nickmask + msg.Source = nickmask msg.Command = command msg.Params = make([]string, 2) msg.Params[0] = target