From 02d943bfb01a5b8268c8a820756ebcb0639e1f7b Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 5 Sep 2012 02:56:59 -0400 Subject: [PATCH] Not quite sure what I was thinking here --- modules/commands/os_forbid.cpp | 4 ++-- 1 file 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 &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; }