From 6e9bb66493cd409fb9b41ef1ba7c0ef7dda5c158 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 18 Aug 2006 10:24:39 +0000 Subject: Dont allow USERHOST (and new WHO) on unregistered users git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4947 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_userhost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd_userhost.cpp') diff --git a/src/cmd_userhost.cpp b/src/cmd_userhost.cpp index aaa25c986..d78d24646 100644 --- a/src/cmd_userhost.cpp +++ b/src/cmd_userhost.cpp @@ -31,7 +31,7 @@ void cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user) for (int i = 0; i < pcnt; i++) { userrec *u = ServerInstance->FindNick(parameters[i]); - if(u) + if ((u) && (u->registered == REG_ALL)) { if(*u->oper) if(*user->oper) -- cgit v1.2.3