summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-02 15:28:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-02 15:28:08 +0000
commit872ce1658ef3cd340db542580f9474e0e0fdc8a8 (patch)
tree24c7d786744df1ac2f98b292996252ce1a14f444
parentfa4ef422eaf77a0d9d29ce3e5b11db0e40c86e09 (diff)
Broadcast SPYLIST and SPYNAMES usage to all opers
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3015 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spy.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_spy.cpp b/src/modules/m_spy.cpp
index beeb0f0d3..3021b7c00 100644
--- a/src/modules/m_spy.cpp
+++ b/src/modules/m_spy.cpp
@@ -105,7 +105,8 @@ class cmd_spylist : public command_t
void cmd_spylist::Handle (char **parameters, int pcnt, userrec *user)
{
- WriteServ(user->fd,"321 %s Channel :Users Name",user->nick);
+ WriteOpers("*** Oper %s used SPYLIST to list +s/+p channels.",user->nick);
+ WriteServ(user->fd,"321 %s Channel :Users Name",user->nick);
for (chan_hash::const_iterator i = chanlist.begin(); i != chanlist.end(); i++)
{
WriteServ(user->fd,"322 %s %s %d :[+%s] %s",user->nick,i->second->name,usercount_i(i->second),chanmodes(i->second,true),i->second->topic);
@@ -125,6 +126,8 @@ class cmd_spynames : public command_t
void cmd_spynames::Handle (char **parameters, int pcnt, userrec *user)
{
chanrec* c;
+
+ WriteOpers("*** Oper %s used SPYNAMES to view the users on a +s/+p channel.",user->nick);
if (!pcnt)
{