diff options
| author | 2006-07-09 20:41:36 +0000 | |
|---|---|---|
| committer | 2006-07-09 20:41:36 +0000 | |
| commit | 6a831a13ce816907bbf4b3a0a76c449a59972983 (patch) | |
| tree | 6c9820913148a41ecd3c35fe3e8b7b5a06bc0e24 /src/modules/m_censor.cpp | |
| parent | Whack a space indent (diff) | |
FEAR THE POWER OF VIM AND THE ALMIGHTY "%s/ /\t/g"
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4249 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_censor.cpp')
| -rw-r--r-- | src/modules/m_censor.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index 03b4f0f9d..8da29bf45 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -3,13 +3,13 @@ * +------------------------------------+ * * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * <brain@chatspike.net> - * <Craig@chatspike.net> + * E-mail: + * <brain@chatspike.net> + * <Craig@chatspike.net> * * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -70,10 +70,10 @@ class ModuleCensor : public Module } - virtual void On005Numeric(std::string &output) - { + virtual void On005Numeric(std::string &output) + { InsertMode(output,"G",4); - } + } virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms) @@ -158,10 +158,10 @@ class ModuleCensor : public Module throw(e); } censors.clear(); - for (int index = 0; index < MyConf->Enumerate("badword"); index++) - { - irc::string pattern = (MyConf->ReadValue("badword","text",index)).c_str(); - irc::string replace = (MyConf->ReadValue("badword","replace",index)).c_str(); + for (int index = 0; index < MyConf->Enumerate("badword"); index++) + { + irc::string pattern = (MyConf->ReadValue("badword","text",index)).c_str(); + irc::string replace = (MyConf->ReadValue("badword","replace",index)).c_str(); censors[pattern] = replace; } delete Conf; |
