script: don't get killed because of users

This commit is contained in:
Přemysl Eric Janouch 2014-09-27 21:43:11 +02:00
parent f9dced26ca
commit ca05277ce7
1 changed files with 3 additions and 0 deletions

View File

@ -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;