summaryrefslogtreecommitdiff
path: root/src/cmd_userhost.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-18 10:24:39 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-18 10:24:39 +0000
commit6e9bb66493cd409fb9b41ef1ba7c0ef7dda5c158 (patch)
tree89712120cfb1104f0d6cffdc30dab19ecb5d9383 /src/cmd_userhost.cpp
parent3d0dc0e357b3da442ff7391705bfc4b4d6c205b6 (diff)
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
Diffstat (limited to 'src/cmd_userhost.cpp')
-rw-r--r--src/cmd_userhost.cpp2
1 files changed, 1 insertions, 1 deletions
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)