diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-18 10:27:22 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-18 10:27:22 +0000 |
commit | 71b73c76bc0fb46a982a5d1611aa24e9b678b03c (patch) | |
tree | 4bb644adba4f2540bf20802c863ffb5e4a82fc66 /src | |
parent | 6e9bb66493cd409fb9b41ef1ba7c0ef7dda5c158 (diff) |
Dont allow USERIP (where loaded) on unregistered users
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4950 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_userip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp index 9fea5837b..341a66615 100644 --- a/src/modules/m_userip.cpp +++ b/src/modules/m_userip.cpp @@ -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); |