diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-29 20:14:32 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-29 20:14:32 +0000 |
commit | 6b81c8508469a0c458d74a29d3bee4522da48c29 (patch) | |
tree | dd5ea3596a7015faaeb7405347d8cde09db5c64a | |
parent | c88225e88e62cbebe9bb3dea3a9c127cb475d0a1 (diff) |
Only send 008 when MODE Oper
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5075 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/mode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index c14343feb..3faea44ba 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -259,7 +259,8 @@ void ModeParser::DisplayCurrentModes(userrec *user, userrec* targetuser, chanrec { /* Display user's current mode string */ user->WriteServ("221 %s :+%s",targetuser->nick,targetuser->FormatModes()); - user->WriteServ("008 %s :+%s", targetuser->nick, targetuser->FormatNoticeMasks()); + if (*targetuser->oper) + user->WriteServ("008 %s +%s :Server notice mask", targetuser->nick, targetuser->FormatNoticeMasks()); return; } |