pre-commit: add configuration and did some cleanup
Signed-off-by: Sumner Evans <sumner@beeper.com>
This commit is contained in:
15
commands.go
15
commands.go
@@ -17,14 +17,10 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
// "errors"
|
||||
|
||||
"fmt"
|
||||
"math"
|
||||
"sort"
|
||||
|
||||
// "math"
|
||||
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@@ -879,12 +875,11 @@ func (handler *CommandHandler) CommandOpen(ce *CommandEvent) {
|
||||
const cmdPMHelp = `pm - To direct message someone already in a shared group start a direct chat with them in Matrix`
|
||||
|
||||
func (handler *CommandHandler) CommandPM(ce *CommandEvent) {
|
||||
ce.Reply(fmt.Sprintf("**DEPRECATED COMMAND:** `%s`", cmdPMHelp))
|
||||
return
|
||||
if len(ce.Args) == 0 {
|
||||
ce.Reply(fmt.Sprintf("**DEPRECATED COMMAND:** `%s`", cmdPMHelp))
|
||||
return
|
||||
}
|
||||
// ce.Reply(fmt.Sprintf("**DEPRECATED COMMAND:** `%s`", cmdPMHelp))
|
||||
// if len(ce.Args) == 0 {
|
||||
// ce.Reply(fmt.Sprintf("**DEPRECATED COMMAND:** `%s`", cmdPMHelp))
|
||||
// return
|
||||
// }
|
||||
|
||||
// force := ce.Args[0] == "--force"
|
||||
// if force {
|
||||
|
||||
Reference in New Issue
Block a user