1
0
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:
Adam
2014-02-17 19:39:25 -05:00
parent 7b4eec9748
commit ef7dc94f88
3 changed files with 60 additions and 46 deletions
+2 -2
View File
@@ -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;