From 8456cf5ccd44911f4e56538fe0880dd7fc7cd96d Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 2 Oct 2009 03:15:46 +0000 Subject: Fix valgrind issues and crashes on exit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11794 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ojoin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_ojoin.cpp') diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp index 8b8c1401e..c4ba99779 100644 --- a/src/modules/m_ojoin.cpp +++ b/src/modules/m_ojoin.cpp @@ -212,7 +212,6 @@ class NetworkPrefix : public ModeHandler ((source == theuser) && (!adding)) || (ServerInstance->ULine(source->nick.c_str())) || (ServerInstance->ULine(source->server)) || - (!*source->server) || (!IS_LOCAL(source)) ) { @@ -289,7 +288,7 @@ class ModuleOjoin : public Module ModResult OnUserPreKick(User* source, Membership* memb, const std::string &reason) { - if ((ServerInstance->ULine(source->nick.c_str())) || (ServerInstance->ULine(source->server)) || (!*source->server)) + if ((ServerInstance->ULine(source->nick.c_str())) || ServerInstance->ULine(source->server)) return MOD_RES_PASSTHRU; // Don't do anything if they're not +Y -- cgit v1.3.1-10-gc9f91