Bladeren bron

Always log IRC error messages.

Steve Thielemann 2 jaren geleden
bovenliggende
commit
135bde64f9
1 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  1. 7 0
      irc-client.go

+ 7 - 0
irc-client.go

@@ -473,6 +473,13 @@ func (Config *IRCConfig) ReaderRoutine() {
 			msg.Cmd = results[0]
 		}
 
+		if !Config.Debug_Output {
+			if msg.Cmd == "ERROR" || msg.Cmd[0] == '4' || msg.Cmd[0] == '5' {
+				// Always log errors.
+				log.Println("<<", line)
+			}
+		}
+
 		// Answer PING/PONG immediately.
 		if results[0] == "PING" {
 			Config.PriorityWrite("PONG " + results[1])