0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

chmode.c: Fix bug in printing removed bans.

This commit is contained in:
Keith Buck 2012-02-06 16:38:10 +00:00
parent ac37f16a3d
commit 3e910a1847

View file

@ -941,9 +941,9 @@ chm_ban(struct Client *source_p, struct Channel *chptr,
}
if(removed && removed->forward)
removed_mask_pos += rb_snprintf(buf, sizeof(buf), "%s$%s", removed->banstr, removed->forward);
removed_mask_pos += rb_snprintf(buf + old_removed_mask_pos, sizeof(buf), "%s$%s", removed->banstr, removed->forward) + 1;
else
removed_mask_pos += rb_strlcpy(buf, mask, sizeof(buf));
removed_mask_pos += rb_strlcpy(buf + old_removed_mask_pos, mask, sizeof(buf)) + 1;
if(removed)
{
free_ban(removed);