diff options
| author | 2023-09-21 20:17:13 +0100 | |
|---|---|---|
| committer | 2023-09-21 20:17:13 +0100 | |
| commit | 136a1ef6a203611f5faa1485801e90fe76697820 (patch) | |
| tree | c6b9acd888cfc32d80f5660f6c824d26a62ed380 /src/listmode.cpp | |
| parent | Rename <options:hostintopic> to <options:maskintopic>. (diff) | |
| download | inspircd++-136a1ef6a203611f5faa1485801e90fe76697820.tar.gz inspircd++-136a1ef6a203611f5faa1485801e90fe76697820.tar.bz2 inspircd++-136a1ef6a203611f5faa1485801e90fe76697820.zip | |
Add an option for including the setter's full mask in list modes.
Diffstat (limited to 'src/listmode.cpp')
| -rw-r--r-- | src/listmode.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/listmode.cpp b/src/listmode.cpp index 40a91004e..d6780b1a3 100644 --- a/src/listmode.cpp +++ b/src/listmode.cpp @@ -199,7 +199,11 @@ bool ListModeBase::OnModeChange(User* source, User*, Channel* channel, Modes::Ch } // Add the new entry to the list. - cd->list.emplace_back(change.param, change.set_by.value_or(source->nick), change.set_at.value_or(ServerInstance->Time())); + cd->list.emplace_back( + change.param, + change.set_by.value_or(ServerInstance->Config->MaskInList ? source->GetMask() : source->nick), + change.set_at.value_or(ServerInstance->Time()) + ); return true; } else |
