1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 06:36:39 +02:00

Made access del by nick and other functions from 326f1a really delete objects

This commit is contained in:
Adam
2013-02-05 09:45:48 -05:00
parent 62e3c8c4f8
commit 25cec015e8
7 changed files with 26 additions and 43 deletions
+2 -2
View File
@@ -180,7 +180,7 @@ class CommandCSFlags : public Command
if (current != NULL)
{
FOREACH_MOD(I_OnAccessDel, OnAccessDel(ci, source, current));
ci->EraseAccess(current);
current->Destroy();
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "to delete " << mask;
source.Reply(_("\002%s\002 removed from the %s access list."), mask.c_str(), ci->name.c_str());
}
@@ -203,7 +203,7 @@ class CommandCSFlags : public Command
access->flags = current_flags;
if (current != NULL)
ci->EraseAccess(current);
current->Destroy();
ci->AddAccess(access);