Rename quietban to muteban, change character to +b m:, this way it fits with cmode +m, which is what it does.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10019 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2008-07-14 12:15:11 +00:00
parent a82061b65b
commit f474e7e6dc
3 changed files with 8 additions and 11 deletions

View File

@ -1011,9 +1011,9 @@
#<module name="m_proxyscan.so">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Quietban: Implements extended ban q:, which stops anyone matching
# a mask like +b q:nick!user@host from speaking on channel.
#<module name="m_quietban.so">
# Muteban: Implements extended ban m:, which stops anyone matching
# a mask like +b n:nick!user@host from speaking on channel.
#<module name="m_muteban.so">
#
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

View File

@ -13,7 +13,7 @@
#include "inspircd.h"
/* $ModDesc: Implements extban +b q: - quiet bans */
/* $ModDesc: Implements extban +b m: - mute bans */
class ModuleQuietBan : public Module
{
@ -41,7 +41,7 @@ class ModuleQuietBan : public Module
if (target_type == TYPE_CHANNEL)
{
if (((Channel *)dest)->IsExtBanned(user, 'q'))
if (((Channel *)dest)->IsExtBanned(user, 'm'))
{
user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Cannot send to " + ((Channel *)dest)->name + ", as you are muted");
return 1;
@ -58,7 +58,7 @@ class ModuleQuietBan : public Module
if (target_type == TYPE_CHANNEL)
{
if (((Channel *)dest)->IsExtBanned(user, 'q'))
if (((Channel *)dest)->IsExtBanned(user, 'm'))
{
user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Cannot send to " + ((Channel *)dest)->name + ", as you are muted");
return 1;
@ -70,10 +70,7 @@ class ModuleQuietBan : public Module
virtual void On005Numeric(std::string &output)
{
if (output.find(" EXTBAN=:") == std::string::npos)
output.append(" EXTBAN=:q");
else
output.insert(output.find(" EXTBAN=:") + 9, "q");
ServerInstance->AddExtBanChar("m");
}
};

View File

@ -70,7 +70,7 @@ class ModuleNoNickChange : public Module
virtual void On005Numeric(std::string &output)
{
ServerInstance->AddExtBanChar("n");
ServerInstance->AddExtBanChar("N");
}
virtual int OnUserPreNick(User* user, const std::string &newnick)