Security Update #6

Merged
raul merged 25 commits from testing into main 2024-05-17 08:00:14 +02:00
2 changed files with 5 additions and 7 deletions
Showing only changes of commit ff801f81d0 - Show all commits

View File

@ -65,6 +65,9 @@ func setClientParameters(cmd *cobra.Command) error {
} }
ascii, err := cmd.Flags().GetBool("ascii") ascii, err := cmd.Flags().GetBool("ascii")
if err != nil {
return err
}
if ascii == true { if ascii == true {
useASCII = true useASCII = true
} }

View File

@ -116,13 +116,8 @@ func listenMessages(g *gocui.Gui) {
for { for {
messageFromServer, _, err := receiveMessage(data.Server) messageFromServer, _, err := receiveMessage(data.Server)
if err != nil { if err != nil {
// What the hell is this
if err == gocui.ErrQuit {
g.Close() g.Close()
} else { os.Exit(0)
g.Close()
os.Exit(1)
}
} }
formattedMessage := strings.TrimRight(messageFromServer, "\n") formattedMessage := strings.TrimRight(messageFromServer, "\n")