]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_censor.cpp
Renamed to chanrec::modes
[user/henk/code/inspircd.git] / src / modules / m_censor.cpp
index d42e8b3243892d1c76296af1521c65d4f43895ad..03b4f0f9dfc8d2726dac90b43000468050921238 100644 (file)
@@ -30,7 +30,7 @@ typedef std::map<irc::string,irc::string> censor_t;
 class CensorException : public ModuleException
 {
  public:
-       virtual char* GetReason()
+       virtual const char* GetReason()
        {
                return "Could not find <censor file=\"\"> definition in your config file!";
        }
@@ -124,7 +124,7 @@ class ModuleCensor : public Module
                                else if (target_type == TYPE_CHANNEL)
                                {
                                        chanrec* t = (chanrec*)dest;
-                                       active = (t->IsCustomModeSet('G'));
+                                       active = (t->IsModeSet('G'));
                                }
                                
                                if (active)