]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ident.cpp
To be more specific, specify rpath() macro here
[user/henk/code/inspircd.git] / src / modules / m_ident.cpp
index dc59adcead13a766a2cb569211724650806b69ca..01b268edd40a281c4306b82286af2d6f113d1719 100644 (file)
@@ -2,20 +2,15 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- *                       E-mail:
- *                <brain@chatspike.net>
- *               <Craig@chatspike.net>
- *     
- * Written by Craig Edwards, Craig McLure, and others.
+ *  InspIRCd: (C) 2002-2007 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.
  *
  * ---------------------------------------------------
  */
 
-using namespace std;
-
 #include <stdio.h>
 #include <string>
 #include "users.h"
@@ -92,7 +87,6 @@ class RFC1413 : public InspSocket
                                                                        if (this->Instance->IsIdent(section))
                                                                        {
                                                                                strlcpy(u->ident,section,IDENTMAX);
-                                                                               Instance->Log(DEBUG,"IDENT SET: "+std::string(u->ident));
                                                                                u->WriteServ("NOTICE "+std::string(u->nick)+" :*** Found your ident: "+std::string(u->ident));
                                                                        }
                                                                }
@@ -144,14 +138,13 @@ class RFC1413 : public InspSocket
 
        virtual bool OnConnected()
        {
-               Instance->Log(DEBUG,"Ident: connected");
                if (u && (Instance->SE->GetRef(ufd) == u))
                {
                        uslen = sizeof(sock_us);
                        themlen = sizeof(sock_them);
                        if ((getsockname(this->u->GetFd(),(sockaddr*)&sock_us,&uslen) || getpeername(this->u->GetFd(), (sockaddr*)&sock_them, &themlen)))
                        {
-                               Instance->Log(DEBUG,"Ident: failed to get socket names, bailing");
+                               Instance->Log(DEBUG,"BUG: Ident: failed to get socket names");
                                return false;
                        }
                        else
@@ -163,7 +156,6 @@ class RFC1413 : public InspSocket
                                snprintf(ident_request,127,"%d,%d\r\n",ntohs(sock_them.sin_port),ntohs(sock_us.sin_port));
 #endif
                                this->Write(ident_request);
-                               Instance->Log(DEBUG,"Sent ident request, waiting for reply");
                                return true;
                        }
                }
@@ -203,7 +195,7 @@ class ModuleIdent : public Module
                List[I_OnCleanup] = List[I_OnRehash] = List[I_OnUserRegister] = List[I_OnCheckReady] = List[I_OnUserDisconnect] = 1;
        }
 
-       virtual void OnRehash(const std::string &parameter)
+       virtual void OnRehash(userrec* user, const std::string &parameter)
        {
                ReadSettings();
        }