diff options
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 |
