about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2012-08-26 12:04:40 +0200
committerAlexander Barton <alex@barton.de>2012-08-26 12:04:40 +0200
commit037b4b76df6122f86d8c9536eb761664a5d71e53 (patch)
tree6ad44db45c9b7006f1c70335f17366c69e795fb9 /src
parent4b0f526006adb30bb127cde29ff67e8bd97352c2 (diff)
downloadngircd-037b4b76df6122f86d8c9536eb761664a5d71e53.tar.gz
ngircd-037b4b76df6122f86d8c9536eb761664a5d71e53.zip
Check_Connections(): code cleanup
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 06236fd4..28a0341e 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -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 <