mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
When removing a list mode update the parameter to the actual entry.
This commit is contained in:
parent
7c31e3697b
commit
aa383e7efd
@ -210,6 +210,7 @@ bool ListModeBase::OnModeChange(User* source, User*, Channel* channel, Modes::Ch
|
||||
if (!CompareEntry(it->mask, change.param))
|
||||
continue; // Doesn't match the proposed removal.
|
||||
|
||||
change.param = it->mask;
|
||||
stdalgo::vector::swaperase(cd->list, it);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user