From 54b9174b73a9473e157327045b7fc81f2c3bc557 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 18 Dec 2006 23:36:25 +0000 Subject: 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 --- src/mode.cpp | 1 + 1 file changed, 1 insertion(+) 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; } } -- cgit v1.2.3