From 7f1d3c8b3297d8c47b01fe8ebae0faf4b8efb3dc Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 12 Oct 2009 13:20:47 +0000 Subject: [PATCH] Fix WriteCommon when used on remote nicks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11852 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/users.cpp b/src/users.cpp index ba3b9bec8..1cf21a029 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1200,7 +1200,7 @@ void User::WriteCommon(const char* text, ...) char textbuffer[MAXBUF]; va_list argsPtr; - if (this->registered != REG_ALL || !IS_LOCAL(this) || quitting) + if (this->registered != REG_ALL || quitting) return; int len = snprintf(textbuffer,MAXBUF,":%s ",this->GetFullHost().c_str()); @@ -1217,7 +1217,7 @@ void User::WriteCommonExcept(const char* text, ...) char textbuffer[MAXBUF]; va_list argsPtr; - if (this->registered != REG_ALL || !IS_LOCAL(this) || quitting) + if (this->registered != REG_ALL || quitting) return; int len = snprintf(textbuffer,MAXBUF,":%s ",this->GetFullHost().c_str()); @@ -1231,7 +1231,7 @@ void User::WriteCommonExcept(const char* text, ...) void User::WriteCommonRaw(const std::string &line, bool include_self) { - if (this->registered != REG_ALL || !IS_LOCAL(this) || quitting) + if (this->registered != REG_ALL || quitting) return; if (!already_sent) -- 2.39.5