diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-04 14:53:56 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-04 14:53:56 +0000 |
commit | 1b7b2a696d9bf4ee1d93544138aa775d6fa92c74 (patch) | |
tree | 7f47898c9bc152cc7929a8b2149979aff0c7a6a1 /src/mode.cpp | |
parent | 36fe193886fcf3d583e259018f82c2f217c05a39 (diff) |
foolish human! you can't /mode query a user that isnt there!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6871 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 8f74f92bf..b98316597 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -246,6 +246,12 @@ void ModeParser::DisplayCurrentModes(userrec *user, userrec* targetuser, chanrec } else if (targetuser) { + if (targetuser->Visibility && !targetuser->Visibility->VisibleTo(user)) + { + user->WriteServ("401 %s %s :No such nick/channel",user->nick, text); + return; + } + if ((targetuser == user) || (*user->oper)) { /* Display user's current mode string */ |