summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-08 21:30:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-08 21:30:08 +0000
commitbc34197205699f7a255b36e8905312b85b164ccd (patch)
tree7d70c7fb757740d5c10ae60ba508fc5455e763e7 /src
parent3c362be4a28886a761b9d8d2d651dc04d78a0a2d (diff)
Add oper notices on: (1) joining invisibly to a channel (2) engage or disengage mode +Q
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6918 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_invisible.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp
index 41de98e3d..29b741425 100644
--- a/src/modules/m_invisible.cpp
+++ b/src/modules/m_invisible.cpp
@@ -105,6 +105,8 @@ class InvisibleMode : public ModeHandler
i->second->WriteServ("MODE %s +%s", f->first->name, n.c_str());
}
}
+
+ ServerInstance->WriteOpers("*** \2NOTICE\2: Oper %s has become %svisible (%sQ)", dest->GetFullHost(), adding ? "in" : "", adding ? "+" : "-");
}
return MODEACTION_ALLOW;
}
@@ -181,6 +183,7 @@ class ModuleInvisible : public Module
silent = true;
/* Because we silenced the event, make sure it reaches the user whos joining (but only them of course) */
user->WriteFrom(user, "JOIN %s", channel->name);
+ ServerInstance->WriteOpers("*** \2NOTICE\2: Oper %s has joined %s invisibly (+Q)", user->GetFullHost(), channel->name);
}
}