aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-27 21:43:11 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-27 21:43:11 +0200
commitca05277ce7f53f6d406bf0a72af83386c905a129 (patch)
tree3b9eecfb8f3e783da0245a35bc7330b79d290399 /plugins
parentf9dced26cae066aaa804f91d20796702cd255091 (diff)
downloadxK-ca05277ce7f53f6d406bf0a72af83386c905a129.tar.gz
xK-ca05277ce7f53f6d406bf0a72af83386c905a129.tar.xz
xK-ca05277ce7f53f6d406bf0a72af83386c905a129.zip
script: don't get killed because of users
Diffstat (limited to 'plugins')
-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;