Changeset 555 in code


Ignore:
Timestamp:
Jun 10, 2021, 10:16:33 AM (4 years ago)
Author:
contact
Message:

Don't suggest users to /motd in multi-upstream mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r554 r555  
    11031103                dc.SendMessage(msg)
    11041104        }
     1105        motdHint := "No MOTD"
    11051106        if uc := dc.upstream(); uc != nil {
     1107                motdHint = "Use /motd to read the message of the day"
    11061108                dc.SendMessage(&irc.Message{
    11071109                        Prefix:  dc.srv.prefix(),
     
    11131115                Prefix:  dc.srv.prefix(),
    11141116                Command: irc.ERR_NOMOTD,
    1115                 Params:  []string{dc.nick, "Use /motd to read the message of the day"},
     1117                Params:  []string{dc.nick, motdHint},
    11161118        })
    11171119
Note: See TracChangeset for help on using the changeset viewer.