diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-18 12:18:58 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-18 12:18:58 +0000 |
commit | c3f53132673cfe3a63db84745c3c1efe3f5373e1 (patch) | |
tree | af82b16798b989d5c17330859ba33b5ffc76a99d /src | |
parent | cc27a371b260481b4f92a778a216b5367e5636c8 (diff) |
Fix bug #680, reported by Namegduf: 1.2 SHUN does not respect the notifyuser option, and always notifies the user that their command was blocked.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10968 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_shun.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index 5527bd6ad..55b7e94f9 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -243,7 +243,8 @@ class ModuleShun : public Module if (i == ShunEnabledCommands.end()) { - user->WriteServ("NOTICE %s :*** Command %s not processed, as you have been blocked from issuing commands (SHUN)", user->nick.c_str(), command.c_str()); + if (NotifyOfShun) + user->WriteServ("NOTICE %s :*** Command %s not processed, as you have been blocked from issuing commands (SHUN)", user->nick.c_str(), command.c_str()); return 1; } |