]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_callerid.cpp
Remove this, we're not going to keep the .old, makes it twice as much work to documen...
[user/henk/code/inspircd.git] / src / modules / m_callerid.cpp
index 95e663a5bc10251079ae0e7f679057d031343c05..623f838e37864c5a5d4ecf76a656ebb180bacb7f 100644 (file)
@@ -1,12 +1,19 @@
-#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
 
+#include "inspircd.h"
 #include <set>
-
 #include <sstream>
-
 #include <algorithm>
 
 /* $ModDesc: Implementation of callerid (umode +g & /accept, ala hybrid etc) */
@@ -49,7 +56,7 @@ class callerid_data : public classbase
        {
                std::ostringstream oss;
                oss << lastnotify;
-               for (std::set<User*>::iterator i = accepting.begin(); i != accepting.end(); ++i)
+               for (std::set<User*>::const_iterator i = accepting.begin(); i != accepting.end(); ++i)
                {
                        // Encode UIDs.
                        oss << "," << (displayable ? (*i)->nick : (*i)->uuid);
@@ -306,7 +313,7 @@ public:
 
        virtual Version GetVersion()
        {
-               return Version(1, 2, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
+               return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION);
        }
 
        virtual void On005Numeric(std::string& output)