From d85e9685c3677214e4fac41dd1839d9f0a1f9c7b Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Mon, 25 Feb 2013 20:34:53 -0500 Subject: [PATCH] Add a warning for notifications that would be broken by broken varargs --- qcsrc/common/notifications.qh | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/common/notifications.qh b/qcsrc/common/notifications.qh index 6b0c5f40c..c9b2cfe4f 100644 --- a/qcsrc/common/notifications.qh +++ b/qcsrc/common/notifications.qh @@ -1007,6 +1007,7 @@ string Process_Notif_Args(float arg_type, string args, string notiftype, string \ notif.nent_stringcount = strnum; \ notif.nent_floatcount = flnum; \ + if(strnum + flnum > 4) { print(sprintf("^1NOTIFICATION HAS TOO MANY ARGUMENTS WITH BROKEN VARARGS: ^7net_type = MSG_%s, net_name = %s\n", strtoupper(#type), #name)); } \ if(strnum + flnum) \ { \ if(args != "") { notif.nent_args = strzone(Process_Notif_Args(1, args, strtoupper(#type), #name)); } \ -- 2.39.2