summaryrefslogtreecommitdiff
path: root/modules/commands/cs_flags.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_flags.cpp')
-rw-r--r--modules/commands/cs_flags.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/commands/cs_flags.cpp b/modules/commands/cs_flags.cpp
index 65ae33f2f..4681c3d61 100644
--- a/modules/commands/cs_flags.cpp
+++ b/modules/commands/cs_flags.cpp
@@ -1,6 +1,6 @@
/* ChanServ core functions
*
- * (C) 2003-2012 Anope Team
+ * (C) 2003-2013 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
@@ -180,13 +180,13 @@ class CommandCSFlags : public Command
if (current != NULL)
{
FOREACH_MOD(I_OnAccessDel, OnAccessDel(ci, source, current));
- ci->EraseAccess(current);
+ delete current;
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());
}
else
{
- source.Reply(_("Insufficient flags given"));
+ source.Reply(_("Insufficient flags given."));
}
return;
}
@@ -203,7 +203,7 @@ class CommandCSFlags : public Command
access->flags = current_flags;
if (current != NULL)
- ci->EraseAccess(current);
+ delete current;
ci->AddAccess(access);
@@ -348,19 +348,19 @@ class CommandCSFlags : public Command
source.Reply(_("%s is another way to modify the channel access list, similar to\n"
"the XOP and ACCESS methods."), source.command.c_str());
source.Reply(" ");
- source.Reply(_("The MODIFY command allows you to modify the access list. If mask is\n"
+ source.Reply(_("The \002MODIFY\002 command allows you to modify the access list. If mask is\n"
"not already on the access list is it added, then the changes are applied.\n"
"If the mask has no more flags, then the mask is removed from the access list.\n"
"Additionally, you may use +* or -* to add or remove all flags, respectively. You are\n"
"only able to modify the access list if you have the proper permission on the channel,\n"
"and even then you can only give other people access to up what you already have."));
source.Reply(" ");
- source.Reply(_("The LIST command allows you to list existing entries on the channel access list.\n"
+ source.Reply(_("The \002LIST\002 command allows you to list existing entries on the channel access list.\n"
"If a mask is given, the mask is wildcard matched against all existing entries on the\n"
"access list, and only those entries are returned. If a set of flags is given, only those\n"
"on the access list with the specified flags are returned."));
source.Reply(" ");
- source.Reply(_("The CLEAR command clears the channel access list, which requires channel founder."));
+ source.Reply(_("The \002CLEAR\002 command clears the channel access list, which requires channel founder."));
source.Reply(" ");
source.Reply(_("The available flags are:"));