diff options
| author | 2021-03-30 18:48:16 +0100 | |
|---|---|---|
| committer | 2021-03-30 19:05:21 +0100 | |
| commit | d121f8d4cfdd422c0cff2201bd344d4ad3027878 (patch) | |
| tree | babccb9a51259412694b8c51968186318f1e343a /src/listmode.cpp | |
| parent | Fix a compiler warning caused by an unused variable. (diff) | |
Fix the setter and set time of list modes being lost on netburst.
Closes #1812.
Diffstat (limited to 'src/listmode.cpp')
| -rw-r--r-- | src/listmode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listmode.cpp b/src/listmode.cpp index 4cc9cc6b9..2303065b1 100644 --- a/src/listmode.cpp +++ b/src/listmode.cpp @@ -202,7 +202,7 @@ ModeAction ListModeBase::OnModeChange(User* source, User*, Channel* channel, Mod if (ValidateParam(source, channel, change.param)) { // And now add the mask onto the list... - cd->list.push_back(ListItem(change.param, source->nick, ServerInstance->Time())); + cd->list.emplace_back(change.param, change.set_by.value_or(source->nick), change.set_at.value_or(ServerInstance->Time())); return MODEACTION_ALLOW; } else |
