summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd_userhost.cpp2
-rw-r--r--src/cmd_who.cpp3
2 files changed, 4 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)
diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp
index 2fcefa22d..fdb18c89f 100644
--- a/src/cmd_who.cpp
+++ b/src/cmd_who.cpp
@@ -46,6 +46,9 @@ bool whomatch(userrec* user, const char* matchtext, bool opt_realname, bool opt_
bool realhost = false;
bool realname = false;
+ if (user->registered != REG_ALL)
+ return false;
+
if (opt_realname)
realname = match(user->fullname, matchtext);