about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2012-11-24 13:37:56 +0100
committerAlexander Barton <alex@barton.de>2012-11-24 13:37:56 +0100
commit4a2d74c9abb6dbf5c64062c984c6f9e87a2c17ae (patch)
tree68f6d5bcdeb5911a730c991bdf3f8b709e305142 /src
parentcd48b8128ea514a0fd87033571dbba103e1c41d6 (diff)
downloadngircd-4a2d74c9abb6dbf5c64062c984c6f9e87a2c17ae.tar.gz
ngircd-4a2d74c9abb6dbf5c64062c984c6f9e87a2c17ae.zip
Client_HostnameCloaked() -> Client_HostnameDisplayed()
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/client.c8
-rw-r--r--src/ngircd/client.h2
-rw-r--r--src/ngircd/irc-info.c6
-rw-r--r--src/ngircd/irc-mode.c4
-rw-r--r--src/ngircd/irc.c4
5 files changed, 12 insertions, 12 deletions
diff --git a/src/ngircd/client.c b/src/ngircd/client.c
index 2f8d771c..54c01291 100644
--- a/src/ngircd/client.c
+++ b/src/ngircd/client.c
@@ -686,7 +686,7 @@ Client_Hostname(CLIENT *Client)
 
 
 /**
- * Get potentially cloaked hostname of a client.
+ * Get (potentially cloaked) hostname of a client to display it to other users.
  *
  * If the client has not enabled cloaking, the real hostname is used.
  * Please note that this function uses a global static buffer, so you can't
@@ -696,7 +696,7 @@ Client_Hostname(CLIENT *Client)
  * @return Pointer to client hostname
  */
 GLOBAL char *
-Client_HostnameCloaked(CLIENT *Client)
+Client_HostnameDisplayed(CLIENT *Client)
 {
 	static char Cloak_Buffer[CLIENT_HOST_LEN];
 
@@ -837,7 +837,7 @@ Client_MaskCloaked(CLIENT *Client)
 		return Client_Mask(Client);
 
 	snprintf(Mask_Buffer, GETID_LEN, "%s!%s@%s", Client->id, Client->user,
-		 Client_HostnameCloaked(Client));
+		 Client_HostnameDisplayed(Client));
 
 	return Mask_Buffer;
 } /* Client_MaskCloaked */
@@ -1346,7 +1346,7 @@ Client_RegisterWhowas( CLIENT *Client )
 		 sizeof( My_Whowas[slot].id ));
 	strlcpy( My_Whowas[slot].user, Client_User( Client ),
 		 sizeof( My_Whowas[slot].user ));
-	strlcpy( My_Whowas[slot].host, Client_HostnameCloaked( Client ),
+	strlcpy( My_Whowas[slot].host, Client_HostnameDisplayed( Client ),
 		 sizeof( My_Whowas[slot].host ));
 	strlcpy( My_Whowas[slot].info, Client_Info( Client ),
 		 sizeof( My_Whowas[slot].info ));
diff --git a/src/ngircd/client.h b/src/ngircd/client.h
index 7a383af8..82b69019 100644
--- a/src/ngircd/client.h
+++ b/src/ngircd/client.h
@@ -107,7 +107,7 @@ GLOBAL char *Client_User PARAMS(( CLIENT *Client ));
 GLOBAL char *Client_OrigUser PARAMS(( CLIENT *Client ));
 #endif
 GLOBAL char *Client_Hostname PARAMS(( CLIENT *Client ));
-GLOBAL char *Client_HostnameCloaked PARAMS(( CLIENT *Client ));
+GLOBAL char *Client_HostnameDisplayed PARAMS(( CLIENT *Client ));
 GLOBAL char *Client_Modes PARAMS(( CLIENT *Client ));
 GLOBAL char *Client_Flags PARAMS(( CLIENT *Client ));
 GLOBAL CLIENT *Client_Introducer PARAMS(( CLIENT *Client ));
diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c
index 40d46354..57d6e1a2 100644
--- a/src/ngircd/irc-info.c
+++ b/src/ngircd/irc-info.c
@@ -727,7 +727,7 @@ IRC_USERHOST(CLIENT *Client, REQUEST *Req)
 				strlcat(rpl, "+", sizeof(rpl));
 			strlcat(rpl, Client_User(c), sizeof(rpl));
 			strlcat(rpl, "@", sizeof(rpl));
-			strlcat(rpl, Client_HostnameCloaked(c), sizeof(rpl));
+			strlcat(rpl, Client_HostnameDisplayed(c), sizeof(rpl));
 			strlcat(rpl, " ", sizeof(rpl));
 		}
 	}
@@ -792,7 +792,7 @@ write_whoreply(CLIENT *Client, CLIENT *c, const char *channelname, const char *f
 {
 	return IRC_WriteStrClient(Client, RPL_WHOREPLY_MSG, Client_ID(Client),
 				  channelname, Client_User(c),
-				  Client_HostnameCloaked(c),
+				  Client_HostnameDisplayed(c),
 				  Client_ID(Client_Introducer(c)), Client_ID(c),
 				  flags, Client_Hops(c), Client_Info(c));
 }
@@ -1080,7 +1080,7 @@ IRC_WHOIS_SendReply(CLIENT *Client, CLIENT *from, CLIENT *c)
 	/* Nick, user, hostname and client info */
 	if (!IRC_WriteStrClient(from, RPL_WHOISUSER_MSG, Client_ID(from),
 				Client_ID(c), Client_User(c),
-				Client_HostnameCloaked(c), Client_Info(c)))
+				Client_HostnameDisplayed(c), Client_Info(c)))
 		return DISCONNECTED;
 
 	/* Server */
diff --git a/src/ngircd/irc-mode.c b/src/ngircd/irc-mode.c
index 1cf19afc..907c9297 100644
--- a/src/ngircd/irc-mode.c
+++ b/src/ngircd/irc-mode.c
@@ -393,12 +393,12 @@ Announce_Client_Hostname(CLIENT *Origin, CLIENT *Client)
 
 	/* Inform the client itself */
 	IRC_WriteStrClient(Client, RPL_HOSTHIDDEN_MSG, Client_ID(Client),
-			   Client_HostnameCloaked(Client));
+			   Client_HostnameDisplayed(Client));
 
 	/* Inform other servers in the network */
 	IRC_WriteStrServersPrefixFlag(Origin, Client_ThisServer(), 'M',
 				      "METADATA %s host :%s", Client_ID(Client),
-				      Client_HostnameCloaked(Client));
+				      Client_HostnameDisplayed(Client));
 }
 
 
diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index 9d9d3f02..63c4813a 100644
--- a/src/ngircd/irc.c
+++ b/src/ngircd/irc.c
@@ -457,7 +457,7 @@ Send_Message(CLIENT * Client, REQUEST * Req, int ForceType, bool SendErrors)
 				if (nick != NULL && host != NULL) {
 					if (strcasecmp(nick, Client_ID(cl)) == 0 &&
 					    strcasecmp(user, Client_User(cl)) == 0 &&
-					    strcasecmp(host, Client_HostnameCloaked(cl)) == 0)
+					    strcasecmp(host, Client_HostnameDisplayed(cl)) == 0)
 						break;
 					else
 						continue;
@@ -465,7 +465,7 @@ Send_Message(CLIENT * Client, REQUEST * Req, int ForceType, bool SendErrors)
 				if (strcasecmp(user, Client_User(cl)) != 0)
 					continue;
 				if (host != NULL && strcasecmp(host,
-						Client_HostnameCloaked(cl)) != 0)
+						Client_HostnameDisplayed(cl)) != 0)
 					continue;
 				if (server != NULL && strcasecmp(server,
 						Client_ID(Client_Introducer(cl))) != 0)