mirror of
https://github.com/anope/anope.git
synced 2026-07-01 18:26:39 +02:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user