From 7ba6f728255a0130202a0df7888220eaf6c767f0 Mon Sep 17 00:00:00 2001 From: Freeman-AM Date: Wed, 8 Oct 2014 23:31:00 +0200 Subject: [PATCH] Idlekicker: replace len hardcoded content by charsmax --- plugins/ns/idlekicker.sma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ns/idlekicker.sma b/plugins/ns/idlekicker.sma index ba67efb4..2e6479a5 100755 --- a/plugins/ns/idlekicker.sma +++ b/plugins/ns/idlekicker.sma @@ -92,7 +92,7 @@ check_idletime(id) { client_print(id, print_chat, "[AMXX] You have %d seconds to move or you will be kicked for being idle", timeleft) } else if (g_idletime[id] > maxidletime) { new name[MAX_NAME_LENGTH] - get_user_name(id, name, 31) + get_user_name(id, name, charsmax(name)) client_print(0, print_chat, "[AMXX] %s was kicked for being idle longer than %d seconds", name, maxidletime) log_amx("%s was kicked for being idle longer than %d seconds", name, maxidletime) server_cmd("kick #%d ^"You were kicked for being idle longer than %d seconds^"", get_user_userid(id), maxidletime)