]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_redirect.cpp
m_spanningtree Remove unneeded #includes
[user/henk/code/inspircd.git] / src / modules / m_redirect.cpp
index 8076bb2a139d7e171f6f28668fb96f2b488c3783..4d59c34bae74381f59b8fb8c22e8731fdca067ca 100644 (file)
@@ -47,7 +47,7 @@ class Redirect : public ModeHandler
                                }
                        }
 
-                       if (IS_LOCAL(source) && !IS_OPER(source))
+                       if (IS_LOCAL(source) && !source->IsOper())
                        {
                                Channel* c = ServerInstance->FindChan(parameter);
                                if (!c)
@@ -121,7 +121,7 @@ class ModuleRedirect : public Module
                if (UseUsermode)
                {
                        /* Log noting that this breaks compatability. */
-                       ServerInstance->Logs->Log("m_redirect", DEFAULT, "REDIRECT: Enabled usermode +L. This breaks linking with servers that do not have this enabled. This is disabled by default in the 2.0 branch but will be enabled in the next version.");
+                       ServerInstance->Logs->Log("m_redirect", LOG_DEFAULT, "REDIRECT: Enabled usermode +L. This breaks linking with servers that do not have this enabled. This is disabled by default in the 2.0 branch but will be enabled in the next version.");
 
                        /* Try to add the usermode */
                        ServerInstance->Modules->AddService(re_u);
@@ -168,10 +168,6 @@ class ModuleRedirect : public Module
                return MOD_RES_PASSTHRU;
        }
 
-       virtual ~ModuleRedirect()
-       {
-       }
-
        virtual Version GetVersion()
        {
                return Version("Provides channel mode +L (limit redirection) and user mode +L (no forced redirection)", VF_VENDOR);