Changeset 464 in code for trunk/downstream.go


Ignore:
Timestamp:
Mar 16, 2021, 8:13:46 AM (4 years ago)
Author:
contact
Message:

Improve ERR_NOSUCHCHANNEL error messages

References: https://todo.sr.ht/~emersion/soju/63

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r463 r464  
    245245                return uc, name, nil
    246246        }
     247        if dc.network != nil {
     248                return nil, "", ircError{&irc.Message{
     249                        Command: irc.ERR_NOSUCHCHANNEL,
     250                        Params:  []string{name, "Disconnected from upstream network"},
     251                }}
     252        }
    247253
    248254        var conn *upstreamConn
     
    262268                return nil, "", ircError{&irc.Message{
    263269                        Command: irc.ERR_NOSUCHCHANNEL,
    264                         Params:  []string{name, "No such channel"},
     270                        Params:  []string{name, "Missing network suffix in channel name"},
    265271                }}
    266272        }
Note: See TracChangeset for help on using the changeset viewer.