diff options
author | Adam <Adam@anope.org> | 2017-12-03 14:40:01 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-12-03 14:40:01 -0500 |
commit | 76142b1970d6fd68d001e9972833046c79483a49 (patch) | |
tree | 166328fe427a73cab304378e4c3e994b3abe4759 /include/xline.h | |
parent | 2fda0fff4655e92e388d7823e5b1c1f0c6bcfe2d (diff) |
serialize: set and cache new value before calling OnSet and pass old value to OnSet
Diffstat (limited to 'include/xline.h')
-rw-r--r-- | include/xline.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xline.h b/include/xline.h index 59f151864..0ed39946c 100644 --- a/include/xline.h +++ b/include/xline.h @@ -89,7 +89,7 @@ class XLineType : public Serialize::Type<XLine> { using Serialize::Field<XLine, Anope::string>::Field; - void OnSet(XLine *s, const Anope::string &value) override; + void OnSet(XLine *s, Anope::string *old, const Anope::string &value) override; } mask; Serialize::Field<XLine, Anope::string> by, reason, id; Serialize::Field<XLine, time_t> created, expires; |