]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_userhost.cpp
Spotted problem: must clear out all prefixes attached to a user when they quit or...
[user/henk/code/inspircd.git] / src / cmd_userhost.cpp
index cf7000b5d00df54b84a30336efc7727aebcdebdb..d78d24646f3afd5c7ac5ea83bb692a21856f0ca2 100644 (file)
@@ -17,7 +17,7 @@
 #include "inspircd_config.h"
 #include "users.h"
 #include "commands.h"
-#include "helperfuncs.h"
+
 #include "inspircd.h"
 #include "commands/cmd_userhost.h"
 
@@ -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)