From ca05277ce7f53f6d406bf0a72af83386c905a129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sat, 27 Sep 2014 21:43:11 +0200 Subject: [PATCH] script: don't get killed because of users --- plugins/script | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/script b/plugins/script index 42960c1..2e8fb0d 100755 --- a/plugins/script +++ b/plugins/script @@ -2197,6 +2197,9 @@ defn (fn_dot) return false; } + if (buf.len > 255) + buf.s[255] = '\0'; + printf ("PRIVMSG %s :%s%s\r\n", info->ctx, info->ctx_quote, buf.s); free (buf.s); return true;