summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-18 23:36:25 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-18 23:36:25 +0000
commit54b9174b73a9473e157327045b7fc81f2c3bc557 (patch)
treedbe7e91d2e2b8e3ab74cd4032c6e8d242c255509 /src
parent59427ca7f163c39acab3853f22ab23cc11b92606 (diff)
Avoid no such nick on non oper attempting to view modes of a user.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6047 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/mode.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 821d29e7a..1c2f740c3 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -249,6 +249,7 @@ void ModeParser::DisplayCurrentModes(userrec *user, userrec* targetuser, chanrec
else
{
user->WriteServ("502 %s :Can't change mode for other users", user->nick);
+ return;
}
}