From ca05277ce7f53f6d406bf0a72af83386c905a129 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 27 Sep 2014 21:43:11 +0200
Subject: 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;
--
cgit v1.2.3-70-g09d2