Clean up cmode norepeat's metadata when unsetting +K.
This commit is contained in:
parent
2f39232fab
commit
8e3b2b85c7
|
@ -543,7 +543,7 @@ chm_simple(struct Client *source_p, struct Channel *chptr,
|
||||||
}
|
}
|
||||||
else if((dir == MODE_DEL) && (chptr->mode.mode & mode_type))
|
else if((dir == MODE_DEL) && (chptr->mode.mode & mode_type))
|
||||||
{
|
{
|
||||||
/* cleanup KICKNOREJOIN metadata on -J */
|
/* cleanup metadata when the related mode is removed */
|
||||||
if(c == 'J')
|
if(c == 'J')
|
||||||
{
|
{
|
||||||
DICTIONARY_FOREACH(md, &iter, chptr->metadata)
|
DICTIONARY_FOREACH(md, &iter, chptr->metadata)
|
||||||
|
@ -552,6 +552,8 @@ chm_simple(struct Client *source_p, struct Channel *chptr,
|
||||||
channel_metadata_delete(chptr, md->name, 0);
|
channel_metadata_delete(chptr, md->name, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(c == 'K')
|
||||||
|
channel_metadata_delete(chptr, md->name, 0);
|
||||||
|
|
||||||
chptr->mode.mode &= ~mode_type;
|
chptr->mode.mode &= ~mode_type;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue