From be6de051a6fa6a628c38e135eced913ee3240bc9 Mon Sep 17 00:00:00 2001 From: om Date: Mon, 6 Feb 2006 14:08:42 +0000 Subject: Make ulines /swhois silently git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3110 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_swhois.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index 000eeb040..78a44f35a 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -50,14 +50,17 @@ class cmd_swhois : public command_t if(text) { // We already had it set... - - WriteOpers("%s used SWHOIS to set %s's extra whois from '%s' to '%s'", user->nick, dest->nick, text->c_str(), line.c_str()); + + if (!Srv->IsUlined(user->server)) + // Ulines set SWHOISes silently + WriteOpers("%s used SWHOIS to set %s's extra whois from '%s' to '%s'", user->nick, dest->nick, text->c_str(), line.c_str()); dest->Shrink("swhois"); delete text; } - else + else if(!Srv->IsUlined(user->server)) { + // Ulines set SWHOISes silently WriteOpers("%s used SWHOIS to set %s's extra whois to '%s'", user->nick, dest->nick, line.c_str()); } -- cgit v1.2.3