diff --git a/exec/load/ircd_server.js b/exec/load/ircd_server.js
index 60d3f78089f18bf56321ebfdd19ddb1cc0b1b094..22e834397e4e2ede40a7db2194acc96af7672be5 100644
--- a/exec/load/ircd_server.js
+++ b/exec/load/ircd_server.js
@@ -1220,7 +1220,7 @@ function Server_Quit(str,suppress_bcast,is_netsplit,origin) {
 	if (this.outgoing) {
 		if (YLines[this.ircclass].active > 0) {
 			YLines[this.ircclass].active--;
-			log(LOG_DEBUG, "Class "+this_cline.ircclass+" down to "+YLines[this_cline.ircclass].active+" active out of "+YLines[this_cline.ircclass].maxlinks);
+			log(LOG_DEBUG, "Class "+this.ircclass+" down to "+YLines[this.ircclass].active+" active out of "+YLines[this.ircclass].maxlinks);
 		}
 		else
 			log(LOG_ERROR, format("Class %d YLine going negative", this.ircclass));
diff --git a/exec/load/ircd_unreg.js b/exec/load/ircd_unreg.js
index 240946f3555b9c64d82ba857be267e859cae283a..b76145a9dddbdba078a1af1f93415a5a1163fb57 100644
--- a/exec/load/ircd_unreg.js
+++ b/exec/load/ircd_unreg.js
@@ -314,7 +314,7 @@ function Unregistered_Quit(msg) {
 	if (this.outgoing) {
 		if (YLines[this.ircclass].active > 0) {
 			YLines[this.ircclass].active--;
-			log(LOG_DEBUG, "Class "+this_cline.ircclass+" down to "+YLines[this_cline.ircclass].active+" active out of "+YLines[this_cline.ircclass].maxlinks);
+			log(LOG_DEBUG, "Class "+this.ircclass+" down to "+YLines[this.ircclass].active+" active out of "+YLines[this.ircclass].maxlinks);
 		}
 		else
 			log(LOG_ERROR, format("Class %d YLine going negative", this.ircclass));
diff --git a/exec/load/ircd_user.js b/exec/load/ircd_user.js
index 7ae184aa93eaa6086586b7eaebec264c3d9a30c2..ff20a728e6cfe40d0897f5e87f91ff26f4145203 100644
--- a/exec/load/ircd_user.js
+++ b/exec/load/ircd_user.js
@@ -1556,7 +1556,7 @@ function User_Quit(str,suppress_bcast,is_netsplit,origin) {
 		log(LOG_ERROR, "Outgoing USER connection detected!");
 		if (YLines[this.ircclass].active > 0) {
 			YLines[this.ircclass].active--;
-			log(LOG_DEBUG, "Class "+this_cline.ircclass+" down to "+YLines[this_cline.ircclass].active+" active out of "+YLines[this_cline.ircclass].maxlinks);
+			log(LOG_DEBUG, "Class "+this.ircclass+" down to "+YLines[this.ircclass].active+" active out of "+YLines[this.ircclass].maxlinks);
 		}
 		else
 			log(LOG_ERROR, format("Class %d YLine going negative", this.ircclass));