Module: ngircd.git Branch: master Commit: 4a2d74c9abb6dbf5c64062c984c6f9e87a2c17ae URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=4a2d7...
Author: Alexander Barton alex@barton.de Date: Sat Nov 24 13:37:56 2012 +0100
Client_HostnameCloaked() -> Client_HostnameDisplayed()
---
src/ngircd/client.c | 8 ++++---- src/ngircd/client.h | 2 +- src/ngircd/irc-info.c | 6 +++--- src/ngircd/irc-mode.c | 4 ++-- src/ngircd/irc.c | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/ngircd/client.c b/src/ngircd/client.c index 2f8d771..54c0129 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 7a383af..82b6901 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 40d4635..57d6e1a 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 1cf19af..907c929 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 9d9d3f0..63c4813 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)