diff options
author | Adam <Adam@anope.org> | 2014-02-17 19:39:25 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-02-17 19:39:25 -0500 |
commit | ef7dc94f8891e1dba8ac3dcad5966d1025b6226a (patch) | |
tree | 621a5ed520f08b6ff8e5cecac6c9a6b752f36736 /modules/database/db_old.cpp | |
parent | 7b4eec97480bace2621b8caa4b17f0ea50aa1f98 (diff) |
Move most of the implementation details out of os_forbid.h, fixes crashing if a module adding a forbid is unloaded without removing the forbid
Diffstat (limited to 'modules/database/db_old.cpp')
-rw-r--r-- | modules/database/db_old.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/database/db_old.cpp b/modules/database/db_old.cpp index 8c322d02e..ddc488084 100644 --- a/modules/database/db_old.cpp +++ b/modules/database/db_old.cpp @@ -622,7 +622,7 @@ static void LoadNicks() if (!forbid) continue; - ForbidData *d = new ForbidData(); + ForbidData *d = forbid->CreateForbid(); d->mask = nc->display; d->creator = last_usermask; d->reason = last_realname; @@ -1031,7 +1031,7 @@ static void LoadChannels() if (!forbid) continue; - ForbidData *d = new ForbidData(); + ForbidData *d = forbid->CreateForbid(); d->mask = ci->name; d->creator = forbidby; d->reason = forbidreason; |