Changeset 790 in code for trunk/downstream.go


Ignore:
Timestamp:
Mar 3, 2022, 7:50:37 AM (3 years ago)
Author:
contact
Message:

downstream: fail on client or network name mismatch

This probably indicates a mis-configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r789 r790  
    12911291        if dc.clientName == "" {
    12921292                dc.clientName = fallbackClientName
     1293        } else if dc.clientName != fallbackClientName {
     1294                return ircError{&irc.Message{
     1295                        Command: irc.ERR_ERRONEUSNICKNAME,
     1296                        Params:  []string{dc.nick, "Client name mismatch in usernames"},
     1297                }}
    12931298        }
    12941299        if dc.networkName == "" {
    12951300                dc.networkName = fallbackNetworkName
     1301        } else if dc.networkName != fallbackNetworkName {
     1302                return ircError{&irc.Message{
     1303                        Command: irc.ERR_ERRONEUSNICKNAME,
     1304                        Params:  []string{dc.nick, "Network name mismatch in usernames"},
     1305                }}
    12961306        }
    12971307
Note: See TracChangeset for help on using the changeset viewer.