Changeset 636 in code for trunk/config


Ignore:
Timestamp:
Oct 13, 2021, 8:58:34 AM (4 years ago)
Author:
contact
Message:

Add bouncer MOTD

Closes: https://todo.sr.ht/~emersion/soju/137

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/config/config.go

    r612 r636  
    4141        Hostname string
    4242        TLS      *TLS
     43        MOTDPath string
    4344
    4445        SQLDriver string
     
    129130                                return nil, fmt.Errorf("directive %q: %v", d.Name, err)
    130131                        }
     132                case "motd":
     133                        if err := d.ParseParams(&srv.MOTDPath); err != nil {
     134                                return nil, err
     135                        }
    131136                default:
    132137                        return nil, fmt.Errorf("unknown directive %q", d.Name)
Note: See TracChangeset for help on using the changeset viewer.