summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-19 06:17:55 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-19 06:17:55 +0000
commit3860856dd284353966fe682b2256a6dd6b5f48fe (patch)
treee28535836fad521e2df662e2562da8e5b4319ce4 /src/core
parent2b4d834f8c5716a7b9309ad2e4eb5d00b48742e7 (diff)
Moved opertype access checking to NickAlises constructor, cleans up some code and fixes bug #1163
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2968 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ns_group.c2
-rw-r--r--src/core/ns_register.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/core/ns_group.c b/src/core/ns_group.c
index bdf80d38d..ce88641fe 100644
--- a/src/core/ns_group.c
+++ b/src/core/ns_group.c
@@ -74,7 +74,7 @@ class CommandNSGroup : public Command
}
else if (target && target->nc->HasFlag(NI_SUSPENDED))
{
- Alog() << Config.s_NickServ << ": " << u->GetMask() << " tried to use GROUP from SUSPENDED nick " << target->nick;
+ Alog() << Config.s_NickServ << ": " << u->GetMask() << " tried to use GROUP for SUSPENDED nick " << target->nick;
notice_lang(Config.s_NickServ, u, NICK_X_SUSPENDED, target->nick);
}
else if (target->HasFlag(NS_FORBIDDEN))
diff --git a/src/core/ns_register.c b/src/core/ns_register.c
index 519266747..12c811f1c 100644
--- a/src/core/ns_register.c
+++ b/src/core/ns_register.c
@@ -56,8 +56,6 @@ class CommandNSConfirm : public Command
if (nr->email)
na->nc->email = sstrdup(nr->email);
- SetOperType(na->nc);
-
if (!force)
{
u->Login(na->nc);