Avoid show_iline_prefix showing leftovers (#266)

This commit is contained in:
Eric Mertens 2021-08-21 08:54:16 -07:00 committed by GitHub
parent e9e4192e10
commit 2ef034d111
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -710,8 +710,7 @@ show_iline_prefix(struct Client *sptr, struct ConfItem *aconf, char *name)
*prefix_ptr++ = '^';
if(IsOper(sptr) && IsConfExemptLimits(aconf))
*prefix_ptr++ = '>';
*prefix_ptr = '\0';
strncpy(prefix_ptr, name, USERLEN);
rb_strlcpy(prefix_ptr, name, USERLEN + 1);
return (prefix_of_host);
}