chmode: Use original string when removing a mask
This commit is contained in:
parent
62f6351d90
commit
c0d93064a6
1 changed files with 1 additions and 1 deletions
|
@ -927,7 +927,7 @@ chm_ban(struct Client *source_p, struct Channel *chptr,
|
||||||
if (removed && removed->forward)
|
if (removed && removed->forward)
|
||||||
removed_mask_pos += snprintf(buf + old_removed_mask_pos, sizeof(buf) - old_removed_mask_pos, "%s$%s", removed->banstr, removed->forward) + 1;
|
removed_mask_pos += snprintf(buf + old_removed_mask_pos, sizeof(buf) - old_removed_mask_pos, "%s$%s", removed->banstr, removed->forward) + 1;
|
||||||
else
|
else
|
||||||
removed_mask_pos += rb_strlcpy(buf + old_removed_mask_pos, mask, sizeof(buf)) + 1;
|
removed_mask_pos += rb_strlcpy(buf + old_removed_mask_pos, removed ? removed->banstr : mask, sizeof(buf)) + 1;
|
||||||
if (removed)
|
if (removed)
|
||||||
{
|
{
|
||||||
free_ban(removed);
|
free_ban(removed);
|
||||||
|
|
Loading…
Reference in a new issue