summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-06 14:08:42 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-06 14:08:42 +0000
commitbe6de051a6fa6a628c38e135eced913ee3240bc9 (patch)
tree022fe9303f88ce00416e4b24aefddcf5fe8514b4 /src/modules
parente864fbc32310a1f01875c4336e4822f916db2395 (diff)
Make ulines /swhois silently
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3110 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_swhois.cpp9
1 files 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());
}