summaryrefslogtreecommitdiff
path: root/modules/commands/ms_ignore.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-09 01:55:34 -0400
committerAdam <Adam@anope.org>2011-08-09 01:55:34 -0400
commit776583a665fdc1b98b66266f6649865d27337a28 (patch)
treebe07b292c7d307285b5afd78c5e816df8e2a71c5 /modules/commands/ms_ignore.cpp
parent91c3363c1578d24e70d0ed215d6aedc769076f08 (diff)
Simiplied a bit of the access system
Diffstat (limited to 'modules/commands/ms_ignore.cpp')
-rw-r--r--modules/commands/ms_ignore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/commands/ms_ignore.cpp b/modules/commands/ms_ignore.cpp
index c8b9c19e6..76075b299 100644
--- a/modules/commands/ms_ignore.cpp
+++ b/modules/commands/ms_ignore.cpp
@@ -40,9 +40,10 @@ class CommandMSIgnore : public Command
bool ischan;
MemoInfo *mi = memoserv->GetMemoInfo(channel, ischan);
+ ChannelInfo *ci = cs_findchan(channel);
if (!mi)
source.Reply(ischan ? CHAN_X_NOT_REGISTERED : _(NICK_X_NOT_REGISTERED), channel.c_str());
- else if (ischan && !cs_findchan(channel)->HasPriv(u, CA_MEMO))
+ else if (ischan && !ci->AccessFor(u).HasPriv(CA_MEMO))
source.Reply(ACCESS_DENIED);
else if (command.equals_ci("ADD") && !param.empty())
{