summaryrefslogtreecommitdiff
path: root/modules/commands/ns_group.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-09-15 10:11:31 -0400
committerAdam <Adam@anope.org>2012-09-30 20:30:27 -0400
commit9ba719688161499f01c168b1aed84a563bcb5953 (patch)
treeb2ffbe3ceebf2a32820780fb76d30967af8ea50c /modules/commands/ns_group.cpp
parent1e71303ffaf263adb0cc659505caa223f7f27b85 (diff)
Make CommandSource use references, sometimes we hold them for awhile
Diffstat (limited to 'modules/commands/ns_group.cpp')
-rw-r--r--modules/commands/ns_group.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/ns_group.cpp b/modules/commands/ns_group.cpp
index ed1a9eb75..3df4b3460 100644
--- a/modules/commands/ns_group.cpp
+++ b/modules/commands/ns_group.cpp
@@ -266,7 +266,7 @@ class CommandNSGList : public Command
source.Reply(NICK_X_NOT_REGISTERED, nick.c_str());
return;
}
- else if (na->nc != source.nc && !source.IsServicesOper())
+ else if (na->nc != source.GetAccount() && !source.IsServicesOper())
{
source.Reply(ACCESS_DENIED, Config->NickServ.c_str());
return;
@@ -275,7 +275,7 @@ class CommandNSGList : public Command
nc = na->nc;
}
else
- nc = source.nc;
+ nc = source.GetAccount();
ListFormatter list;
list.addColumn("Nick").addColumn("Expires");