Check_Connections(): code cleanup
authorAlexander Barton <alex@barton.de>
Sun, 26 Aug 2012 10:04:40 +0000 (12:04 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 26 Aug 2012 10:04:40 +0000 (12:04 +0200)
src/ngircd/conn.c

index 06236fd43e2ab1269e91e1065efa11786da0ed40..28a0341e0a28e1485c077393671b51702b1e6141 100644 (file)
@@ -1839,10 +1839,10 @@ Check_Connections(void)
                                if (My_Connections[i].lastping <
                                    time(NULL) - Conf_PongTimeout) {
                                        /* Timeout */
-                                       LogDebug
-                                           ("Connection %d: Ping timeout: %d seconds.",
-                                            i, Conf_PongTimeout);
-                                       snprintf(msg, sizeof(msg), "Ping timeout: %d seconds", Conf_PongTimeout);
+                                       snprintf(msg, sizeof(msg),
+                                                "Ping timeout: %d seconds",
+                                                Conf_PongTimeout);
+                                       LogDebug("Connection %d: %s.", i, msg);
                                        Conn_Close(i, NULL, msg, true);
                                }
                        } else if (My_Connections[i].lastdata <