aboutsummaryrefslogtreecommitdiff
path: root/plugins/script
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/script')
-rwxr-xr-xplugins/script3
1 files changed, 3 insertions, 0 deletions
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;