diff options
author | Adam <Adam@anope.org> | 2012-09-05 02:56:59 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-09-05 02:56:59 -0400 |
commit | 02d943bfb01a5b8268c8a820756ebcb0639e1f7b (patch) | |
tree | a6eaed4739737103f263ef74e7e53d9c29618b5a /modules/commands/os_forbid.cpp | |
parent | 4c8fef264ed869b74947e70d5bfe5a567019cbb3 (diff) |
Not quite sure what I was thinking here
Diffstat (limited to 'modules/commands/os_forbid.cpp')
-rw-r--r-- | modules/commands/os_forbid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/os_forbid.cpp b/modules/commands/os_forbid.cpp index b9609b00a..4862d5ea9 100644 --- a/modules/commands/os_forbid.cpp +++ b/modules/commands/os_forbid.cpp @@ -39,10 +39,10 @@ class MyForbidService : public ForbidService const std::vector<ForbidData *> &forbids = this->GetForbids(); for (unsigned i = forbids.size(); i > 0; --i) { - ForbidData *d = this->forbidData[i - 1]; + ForbidData *d = forbids[i - 1]; if ((ftype == FT_NONE || ftype == d->type) && Anope::Match(mask, d->mask, false, true)) - d->destroy(); + return d; } return NULL; } |