From 0b34769b9e3b9e823763cfd8bf3e2d64c2426710 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 7 Feb 2007 17:03:15 +0000 Subject: Fix for bug #205 reported by nenolod (modules that erroneously check remote users to apply privmsg/notice restrictions) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6532 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_services_account.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules/m_services_account.cpp') diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index b5024e4df..9e73ba26b 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -147,6 +147,10 @@ class ModuleServicesAccount : public Module virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list) { std::string *account; + + if (!IS_LOCAL(user)) + return 0; + user->GetExt("accountname", account); if (target_type == TYPE_CHANNEL) -- cgit v1.2.3