]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spy.cpp
Added <oper:swhois> to m_swhois, which will override <type:swhois> if specified
[user/henk/code/inspircd.git] / src / modules / m_spy.cpp
index 53a7f0d7f960e9131a7e804c0d8311b401058153..5cfcfba619b01ac3f9d2bff1519fa7c1a19a835b 100644 (file)
@@ -42,22 +42,8 @@ void spy_userlist(userrec *user, chanrec *c)
 
        CUList *ulist= c->GetUsers();
 
-       /* Improvement by Brain - this doesnt change in value, so why was it inside
-        * the loop?
-        */
-       bool has_user = c->HasUser(user);
-
        for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++)
        {
-               if ((!has_user) && (i->second->modes[UM_INVISIBLE]))
-               {
-                       /*
-                        * user is +i, and source not on the channel, does not show
-                        * nick in NAMES list
-                        */
-                       continue;
-               }
-
                size_t ptrlen = snprintf(ptr, MAXBUF, "%s%s ", c->GetPrefixChar(i->second), i->second->nick);
 
                curlen += ptrlen;
@@ -89,7 +75,8 @@ void spy_userlist(userrec *user, chanrec *c)
 
 }
 
-
+/** Handle /SPYLIST
+ */
 class cmd_spylist : public command_t
 {
   public:
@@ -116,6 +103,8 @@ class cmd_spylist : public command_t
        }
 };
 
+/** Handle /SPYNAMES
+ */
 class cmd_spynames : public command_t
 {
   public:
@@ -174,7 +163,7 @@ class ModuleSpy : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1, 0, 0, 0, VF_VENDOR, API_VERSION);
+               return Version(1, 1, 0, 0, VF_VENDOR, API_VERSION);
        }
 };