mirror of
https://github.com/anope/anope.git
synced 2026-07-07 21:23:13 +02:00
Add Data::Load, make the istream operator private.
This commit is contained in:
@@ -223,12 +223,12 @@ public:
|
||||
else
|
||||
ho = new HostOffer();
|
||||
|
||||
data["ident"] >> ho->ident;
|
||||
data["host"] >> ho->host;
|
||||
data["reason"] >> ho->reason;
|
||||
data["creator"] >> ho->creator;
|
||||
data["created"] >> ho->created;
|
||||
data["expires"] >> ho->expires;
|
||||
ho->ident = data.Load("ident");
|
||||
ho->host = data.Load("host");
|
||||
ho->reason = data.Load("reason");
|
||||
ho->creator = data.Load("creator");
|
||||
ho->created = data.Load<time_t>("created");
|
||||
ho->expires = data.Load<time_t>("expires");
|
||||
|
||||
if (!obj)
|
||||
host_offers->Add(ho);
|
||||
|
||||
Reference in New Issue
Block a user