summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-02 15:34:29 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-02 15:34:29 +0000
commitc49148019103154a0d70c408450d78775e989c9b (patch)
tree81d1b37f37e5f05d269313dc03b50d94bb423f9a /src
parent872ce1658ef3cd340db542580f9474e0e0fdc8a8 (diff)
Added channel name to snotice
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3016 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spy.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/m_spy.cpp b/src/modules/m_spy.cpp
index 3021b7c00..5d100528a 100644
--- a/src/modules/m_spy.cpp
+++ b/src/modules/m_spy.cpp
@@ -105,7 +105,7 @@ class cmd_spylist : public command_t
void cmd_spylist::Handle (char **parameters, int pcnt, userrec *user)
{
- WriteOpers("*** Oper %s used SPYLIST to list +s/+p channels.",user->nick);
+ WriteOpers("*** Oper %s used SPYLIST to list +s/+p channels and keys.",user->nick);
WriteServ(user->fd,"321 %s Channel :Users Name",user->nick);
for (chan_hash::const_iterator i = chanlist.begin(); i != chanlist.end(); i++)
{
@@ -127,8 +127,6 @@ class cmd_spynames : public command_t
{
chanrec* c;
- WriteOpers("*** Oper %s used SPYNAMES to view the users on a +s/+p channel.",user->nick);
-
if (!pcnt)
{
WriteServ(user->fd,"366 %s * :End of /NAMES list.",user->nick);
@@ -137,6 +135,9 @@ class cmd_spynames : public command_t
if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-1,0))
return;
+
+ WriteOpers("*** Oper %s used SPYNAMES to view the users on %s",user->nick,parameters[0]);
+
c = FindChan(parameters[0]);
if (c)
{