From d121f8d4cfdd422c0cff2201bd344d4ad3027878 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 30 Mar 2021 18:48:16 +0100 Subject: Fix the setter and set time of list modes being lost on netburst. Closes #1812. --- src/listmode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/listmode.cpp') 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 -- cgit v1.3.1-10-gc9f91