1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 15:46:37 +02:00

Fix storing the setter of a list mode.

This commit is contained in:
Sadie Powell
2025-06-25 19:10:49 +01:00
parent 3440b38a21
commit eda6d8cc0f
+1 -1
View File
@@ -405,7 +405,7 @@ void Channel::SetMode(BotInfo *bi, ChannelMode *cm, const ModeData &data, bool e
// We build a mode data which has more than what the caller gives us.
ModeData mdata;
mdata.set_at = data.set_at ? data.set_at : Anope::CurTime;
mdata.set_by = data.set_by.empty() && bi ? bi->nick : data.set_by;
mdata.set_by = data.set_by.empty() ? (bi ? bi->nick : Me->GetName()) : data.set_by;
mdata.value = data.value;
/* Don't set modes already set */