mirror of
https://github.com/inspircd/inspircd.git
synced 2025-04-01 13:50:04 -04:00
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:
parent
6e9bb66493
commit
71b73c76bc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user