Dont allow USERIP (where loaded) on unregistered users

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4950 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-08-18 10:27:22 +00:00
parent 6e9bb66493
commit 71b73c76bc

View File

@ -45,7 +45,7 @@ class cmd_userip : public command_t
for (int i = 0; i < pcnt; i++)
{
userrec *u = ServerInstance->FindNick(parameters[i]);
if (u)
if ((u) && (u->registered == REG_ALL))
{
snprintf(junk,MAXBUF,"%s%s=+%s@%s ",u->nick,*u->oper ? "*" : "",u->ident,u->GetIPString());
strlcat(Return,junk,MAXBUF);