diff options
| author | 2006-12-18 23:36:25 +0000 | |
|---|---|---|
| committer | 2006-12-18 23:36:25 +0000 | |
| commit | 54b9174b73a9473e157327045b7fc81f2c3bc557 (patch) | |
| tree | dbe7e91d2e2b8e3ab74cd4032c6e8d242c255509 /src/mode.cpp | |
| parent | std::string something = ""; (diff) | |
| download | inspircd++-54b9174b73a9473e157327045b7fc81f2c3bc557.tar.gz inspircd++-54b9174b73a9473e157327045b7fc81f2c3bc557.tar.bz2 inspircd++-54b9174b73a9473e157327045b7fc81f2c3bc557.zip | |
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/mode.cpp')
| -rw-r--r-- | src/mode.cpp | 1 |
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; } } |
