Remove panic-prone optional beep helpers
This commit is contained in:
committed by
Brandon McGinty
parent
51d62c3acb
commit
c3fe4f88f3
@@ -3,7 +3,6 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -24,16 +23,6 @@ const (
|
||||
uiViewAdmin = "admin"
|
||||
)
|
||||
|
||||
func Beep() {
|
||||
cmd := exec.Command("beep")
|
||||
cmdout, err := cmd.Output()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if cmdout != nil {
|
||||
}
|
||||
}
|
||||
|
||||
func esc(str string) string {
|
||||
return sanitize.HTML(str)
|
||||
}
|
||||
@@ -42,10 +31,6 @@ func (b *Barnard) Notify(event string, who string, what string) {
|
||||
b.notifyChannel <- []string{event, who, what}
|
||||
}
|
||||
|
||||
func (b *Barnard) Beep() {
|
||||
Beep()
|
||||
}
|
||||
|
||||
func (b *Barnard) SetSelectedUser(user *gumble.User) {
|
||||
b.selectedUser = user
|
||||
if user == nil {
|
||||
|
||||
Reference in New Issue
Block a user