diff --git a/default.yaml b/default.yaml index bb785fb8..87a91a57 100644 --- a/default.yaml +++ b/default.yaml @@ -49,6 +49,8 @@ server: # The standard SSL/TLS port for IRC is 6697. This will listen on all interfaces: ":6697": + # this is a standard TLS configuration with a single certificate; + # see the manual for instructions on how to configure SNI tls: cert: fullchain.pem key: privkey.pem diff --git a/docs/MANUAL.md b/docs/MANUAL.md index 3a40d1cf..94bda532 100644 --- a/docs/MANUAL.md +++ b/docs/MANUAL.md @@ -49,6 +49,7 @@ _Copyright © Daniel Oaks , Shivaram Lingamneni ")) } + return } -func ubanAddAccount(client *Client, target ubanTarget, duration time.Duration, operReason string, rb *ResponseBuffer) { +func ubanAddAccount(client *Client, target ubanTarget, duration time.Duration, operReason string, rb *ResponseBuffer) (err error) { account := target.nickOrMask // TODO this doesn't enumerate all sessions if ForceNickEqualsAccount is disabled var sessionData []SessionData @@ -239,7 +288,7 @@ func ubanAddAccount(client *Client, target ubanTarget, duration time.Duration, o sessionData, _ = mcl.AllSessionData(nil, true) } - err := client.server.accounts.Suspend(account, duration, client.Oper().Name, operReason) + err = client.server.accounts.Suspend(account, duration, client.Oper().Name, operReason) switch err { case nil: rb.Notice(fmt.Sprintf(client.t("Successfully suspended account %s"), account)) @@ -254,6 +303,7 @@ func ubanAddAccount(client *Client, target ubanTarget, duration time.Duration, o default: rb.Notice(client.t("An error occurred")) } + return } func ubanDelHandler(client *Client, target ubanTarget, params []string, rb *ResponseBuffer) bool { @@ -276,6 +326,7 @@ func ubanDelHandler(client *Client, target ubanTarget, params []string, rb *Resp } if err == nil { rb.Notice(fmt.Sprintf(client.t("Successfully removed ban on %s"), targetString)) + announceUban(client, false, target, 0, false, "") } else { rb.Notice(fmt.Sprintf(client.t("Could not remove ban: %v"), err)) } diff --git a/traditional.yaml b/traditional.yaml index 3dc24556..47601ac4 100644 --- a/traditional.yaml +++ b/traditional.yaml @@ -23,6 +23,8 @@ server: # The standard SSL/TLS port for IRC is 6697. This will listen on all interfaces: ":6697": + # this is a standard TLS configuration with a single certificate; + # see the manual for instructions on how to configure SNI tls: cert: fullchain.pem key: privkey.pem