From ece985ccb3210a132d67381511642edfb359f5c4 Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 17 Jan 2008 23:40:18 +0000 Subject: Remove a redundant method here, call the mode manager directly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8732 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_invisible.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_invisible.cpp') diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp index 03fdee091..30935c1dd 100644 --- a/src/modules/m_invisible.cpp +++ b/src/modules/m_invisible.cpp @@ -159,10 +159,10 @@ class ModuleInvisible : public Module { conf = new ConfigReader(ServerInstance); qm = new InvisibleMode(ServerInstance); - if (!ServerInstance->AddMode(qm)) + if (!ServerInstance->Modes->AddMode(qm)) throw ModuleException("Could not add new modes!"); ido = new InvisibleDeOper(ServerInstance); - if (!ServerInstance->AddModeWatcher(ido)) + if (!ServerInstance->Modes->AddModeWatcher(ido)) throw ModuleException("Could not add new mode watcher on usermode +o!"); /* Yeah i know people can take this out. I'm not about to obfuscate code just to be a pain in the ass. */ -- cgit v1.3.1-10-gc9f91