Changeset 72 in code for trunk/downstream.go


Ignore:
Timestamp:
Mar 3, 2020, 2:33:21 PM (5 years ago)
Author:
contact
Message:

Remove upstream prefix for outgoing MODE and PRIVMSG

We shouldn't set the prefix when sending these commands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r69 r72  
    422422                        if modeStr != "" {
    423423                                uc.SendMessage(&irc.Message{
    424                                         Prefix:  uc.prefix(),
    425424                                        Command: "MODE",
    426425                                        Params:  []string{upstreamName, modeStr},
     
    452451                                dc.user.forEachUpstream(func(uc *upstreamConn) {
    453452                                        uc.SendMessage(&irc.Message{
    454                                                 Prefix:  uc.prefix(),
    455453                                                Command: "MODE",
    456454                                                Params:  []string{uc.nick, modeStr},
     
    478476
    479477                        uc.SendMessage(&irc.Message{
    480                                 Prefix:  uc.prefix(),
    481478                                Command: "PRIVMSG",
    482479                                Params:  []string{upstreamName, text},
Note: See TracChangeset for help on using the changeset viewer.