From 0c985ee709dd0a342b120b7bd8d03c6172e0798a Mon Sep 17 00:00:00 2001 From: rburchell Date: Sun, 15 Feb 2009 15:23:41 +0000 Subject: [PATCH] Check nick_identified() instead of u->na, as this may incorrectly treat people as identified. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2067 5417fbe8-f217-4b02-8779-1006273d7864 --- src/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.c b/src/commands.c index a9ab5f052..9501640c7 100644 --- a/src/commands.c +++ b/src/commands.c @@ -75,7 +75,7 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char * if (!c->HasFlag(CFLAG_ALLOW_UNREGISTERED)) { // Command requires registered users only - if (!u->na || !u->na->nc) + if (!nick_identified(u)) { // XXX: we should have a new string for this notice_lang(service, u, ACCESS_DENIED);