diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-18 10:24:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-18 10:24:39 +0000 |
commit | 6e9bb66493cd409fb9b41ef1ba7c0ef7dda5c158 (patch) | |
tree | 89712120cfb1104f0d6cffdc30dab19ecb5d9383 /src/cmd_who.cpp | |
parent | 3d0dc0e357b3da442ff7391705bfc4b4d6c205b6 (diff) |
Dont allow USERHOST (and new WHO) on unregistered users
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4947 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_who.cpp')
-rw-r--r-- | src/cmd_who.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |