From 123eac3f25ce4dd3142b4ac66eb321f7df1e23e4 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 21 Oct 2009 23:45:19 +0000 Subject: Change module API to use LocalUser* where correct git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11943 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cloaking.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_cloaking.cpp') diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index c61868dc3..0ad790de9 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -74,10 +74,10 @@ class CloakUser : public ModeHandler std::string* cloak = ext.get(dest); - if (!cloak) + if (!cloak && IS_LOCAL(dest)) { /* Force creation of missing cloak */ - creator->OnUserConnect(dest); + creator->OnUserConnect(IS_LOCAL(dest)); cloak = ext.get(dest); } if (cloak) @@ -424,7 +424,7 @@ class ModuleCloaking : public Module } } - void OnUserConnect(User* dest) + void OnUserConnect(LocalUser* dest) { std::string* cloak = cu.ext.get(dest); if (cloak) -- cgit v1.3.1-10-gc9f91