diff options
Diffstat (limited to 'modules/database/db_old.cpp')
-rw-r--r-- | modules/database/db_old.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/modules/database/db_old.cpp b/modules/database/db_old.cpp index 55956da78..440713a6e 100644 --- a/modules/database/db_old.cpp +++ b/modules/database/db_old.cpp @@ -920,9 +920,9 @@ static void LoadOper() if (!akill) continue; - XLine *x = akill->Add(user + "@" + host, by, expires, reason); - if (x) - x->Created = seton; + XLine *x = new XLine(user + "@" + host, by, expires, reason, XLineManager::GenerateUID()); + x->Created = seton; + akill->AddXLine(x); } read_int16(&capacity, f); // SNLines @@ -940,9 +940,9 @@ static void LoadOper() if (!snline) continue; - XLine *x = snline->Add(mask, by, expires, reason); - if (x) - x->Created = seton; + XLine *x = new XLine(mask, by, expires, reason, XLineManager::GenerateUID()); + x->Created = seton; + snline->AddXLine(x); } read_int16(&capacity, f); // SQLines @@ -960,9 +960,9 @@ static void LoadOper() if (!sqline) continue; - XLine *x = sqline->Add(mask, by, expires, reason); - if (x) - x->Created = seton; + XLine *x = new XLine(mask, by, expires, reason, XLineManager::GenerateUID()); + x->Created = seton; + sqline->AddXLine(x); } read_int16(&capacity, f); // SZLines @@ -980,9 +980,9 @@ static void LoadOper() if (!szline) continue; - XLine *x = szline->Add(mask, by, expires, reason); - if (x) - x->Created = seton; + XLine *x = new XLine(mask, by, expires, reason, XLineManager::GenerateUID()); + x->Created = seton; + szline->AddXLine(x); } close_db(f); |