]> 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 b09a0583363fe99407150077e91b781a312d9fde..5cfcfba619b01ac3f9d2bff1519fa7c1a19a835b 100644 (file)
@@ -42,11 +42,6 @@ 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++)
        {
                size_t ptrlen = snprintf(ptr, MAXBUF, "%s%s ", c->GetPrefixChar(i->second), i->second->nick);
@@ -80,7 +75,8 @@ void spy_userlist(userrec *user, chanrec *c)
 
 }
 
-
+/** Handle /SPYLIST
+ */
 class cmd_spylist : public command_t
 {
   public:
@@ -107,6 +103,8 @@ class cmd_spylist : public command_t
        }
 };
 
+/** Handle /SPYNAMES
+ */
 class cmd_spynames : public command_t
 {
   public:
@@ -165,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);
        }
 };