summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-09 15:47:10 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-09 15:47:10 +0000
commit6d6f0ef3c67974e14cc226a442e09b2d0cb37146 (patch)
tree4513cfda4cd2d3c4a1360a0ec4fbc4ad930385c4
parentd7a0cd3db1e8b64a6f706f1831e645ad69aa7927 (diff)
AddClient -> AddUser, to be consistant
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9443 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/usermanager.h2
-rw-r--r--src/socket.cpp2
-rw-r--r--src/usermanager.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/usermanager.h b/include/usermanager.h
index 8b6d3e9bd..4c50c4292 100644
--- a/include/usermanager.h
+++ b/include/usermanager.h
@@ -71,7 +71,7 @@ class CoreExport UserManager : public classbase
* @param ip The IP address of the user
* @return This function has no return value, but a call to AddClient may remove the user.
*/
- void AddClient(InspIRCd* Instance, int socket, int port, bool iscached, int socketfamily, sockaddr* ip, const std::string &targetip);
+ void AddUser(InspIRCd* Instance, int socket, int port, bool iscached, int socketfamily, sockaddr* ip, const std::string &targetip);
/** Disconnect a user gracefully
* @param user The user to remove
diff --git a/src/socket.cpp b/src/socket.cpp
index fc48d219e..f1c795c60 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -141,7 +141,7 @@ void ListenSocket::HandleEvent(EventType, int)
ServerInstance->SE->NonBlocking(incomingSockfd);
ServerInstance->stats->statsAccept++;
- ServerInstance->Users->AddClient(ServerInstance, incomingSockfd, in_port, false, this->family, client, target);
+ ServerInstance->Users->AddUser(ServerInstance, incomingSockfd, in_port, false, this->family, client, target);
}
else
{
diff --git a/src/usermanager.cpp b/src/usermanager.cpp
index 6385fb929..aaf512019 100644
--- a/src/usermanager.cpp
+++ b/src/usermanager.cpp
@@ -18,7 +18,7 @@
#include "bancache.h"
/* add a client connection to the sockets list */
-void UserManager::AddClient(InspIRCd* Instance, int socket, int port, bool iscached, int socketfamily, sockaddr* ip, const std::string &targetip)
+void UserManager::AddUser(InspIRCd* Instance, int socket, int port, bool iscached, int socketfamily, sockaddr* ip, const std::string &targetip)
{
/* NOTE: Calling this one parameter constructor for User automatically
* allocates a new UUID and places it in the hash_map.