chmode.c: Fix bug in printing removed bans.
This commit is contained in:
parent
ac37f16a3d
commit
3e910a1847
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue