Browse Source

Fixes incorrectly exiting when user QUITs

Only respond to QUIT messages that have a matching username to the
logged in user, instead of any QUIT messsage
master
Noah Pederson 10 months ago
parent
commit
faa855f6aa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      main.go

+ 1
- 1
main.go View File

@ -79,7 +79,7 @@ func main() {
if message == nil {
continue
}
if message.Command == irc.QUIT {
if message.Command == irc.QUIT && message.Prefix.Name == config.Nick {
log.Printf("Server sent QUIT, exiting")
running = false
//Exit with a non-zero status so the system process restarts this process


Loading…
Cancel
Save