Changeset 545 in code for trunk/downstream.go


Ignore:
Timestamp:
May 26, 2021, 9:23:09 AM (4 years ago)
Author:
contact
Message:

Reject JOIN with invalid channel names

This prevents us from storing typo'ed channel names in the DB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r542 r545  
    14361436                        }
    14371437
     1438                        if !uc.isChannel(upstreamName) {
     1439                                dc.SendMessage(&irc.Message{
     1440                                        Prefix:  dc.srv.prefix(),
     1441                                        Command: irc.ERR_NOSUCHCHANNEL,
     1442                                        Params:  []string{name, "Not a channel name"},
     1443                                })
     1444                                continue
     1445                        }
     1446
    14381447                        params := []string{upstreamName}
    14391448                        if key != "" {
Note: See TracChangeset for help on using the changeset viewer.