diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-27 21:43:11 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-27 21:43:11 +0200 |
commit | ca05277ce7f53f6d406bf0a72af83386c905a129 (patch) | |
tree | 3b9eecfb8f3e783da0245a35bc7330b79d290399 /plugins | |
parent | f9dced26cae066aaa804f91d20796702cd255091 (diff) | |
download | xK-ca05277ce7f53f6d406bf0a72af83386c905a129.tar.gz xK-ca05277ce7f53f6d406bf0a72af83386c905a129.tar.xz xK-ca05277ce7f53f6d406bf0a72af83386c905a129.zip |
script: don't get killed because of users
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/script | 3 |
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; |