diff options
author | Adam <Adam@anope.org> | 2011-10-22 11:21:21 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-10-22 11:21:21 -0400 |
commit | c8b3809fc93bfcccb354248c17467da9b69e0ebd (patch) | |
tree | 68f2efa54b2ac5a949dcf1da7d03269ab26ad7df /modules/database/db_plain.cpp | |
parent | ad2ef75cbed4804f9f1d24419b9bc77fbe75a27a (diff) |
Added akill ids
Diffstat (limited to 'modules/database/db_plain.cpp')
-rw-r--r-- | modules/database/db_plain.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/database/db_plain.cpp b/modules/database/db_plain.cpp index 4ac109018..3605c0b9d 100644 --- a/modules/database/db_plain.cpp +++ b/modules/database/db_plain.cpp @@ -548,9 +548,9 @@ static void LoadOperInfo(const std::vector<Anope::string> ¶ms) time_t expires = params[6].is_pos_number_only() ? convertTo<time_t>(params[6]) : 0; Anope::string reason = params[7]; - XLine *x = xl->Add(mask, by, expires, reason); - if (x) - x->Created = seton; + XLine *x = new XLine(mask, by, expires, reason, XLineManager::GenerateUID()); + x->Created = seton; + xl->AddXLine(x); break; } } |