Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
extensions/ip_cloaking*: Fix a bug accidentally introduced in 29d224a
Browse files Browse the repository at this point in the history
…where the cloaking module would change your cloak locally, but not correctly broadcast this to the network, and fail to tell you correctly in the RPL_HOSTHIDDEN reply

(cherry picked from commit 9f409b6)
  • Loading branch information
dwfreed authored and jillest committed Jul 5, 2012
1 parent 319c187 commit 2450b9d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions extensions/ip_cloaking.c
Expand Up @@ -51,17 +51,17 @@ distribute_hostchange(struct Client *client_p, char *newhost)
{
if (newhost != client_p->orighost)
sendto_one_numeric(client_p, RPL_HOSTHIDDEN, "%s :is now your hidden host",
client_p->host);
newhost);
else
sendto_one_numeric(client_p, RPL_HOSTHIDDEN, "%s :hostname reset",
client_p->host);
newhost);

sendto_server(NULL, NULL,
CAP_EUID | CAP_TS6, NOCAPS, ":%s CHGHOST %s :%s",
use_id(&me), use_id(client_p), client_p->host);
use_id(&me), use_id(client_p), newhost);
sendto_server(NULL, NULL,
CAP_TS6, CAP_EUID, ":%s ENCAP * CHGHOST %s :%s",
use_id(&me), use_id(client_p), client_p->host);
use_id(&me), use_id(client_p), newhost);

change_nick_user_host(client_p, client_p->name, client_p->username, newhost, 0, "Changing host");

Expand Down
8 changes: 4 additions & 4 deletions extensions/ip_cloaking_3.0.c
Expand Up @@ -48,17 +48,17 @@ distribute_hostchange(struct Client *client_p, char *newhost)
{
if (newhost != client_p->orighost)
sendto_one_numeric(client_p, RPL_HOSTHIDDEN, "%s :is now your hidden host",
client_p->host);
newhost);
else
sendto_one_numeric(client_p, RPL_HOSTHIDDEN, "%s :hostname reset",
client_p->host);
newhost);

sendto_server(NULL, NULL,
CAP_EUID | CAP_TS6, NOCAPS, ":%s CHGHOST %s :%s",
use_id(&me), use_id(client_p), client_p->host);
use_id(&me), use_id(client_p), newhost);
sendto_server(NULL, NULL,
CAP_TS6, CAP_EUID, ":%s ENCAP * CHGHOST %s :%s",
use_id(&me), use_id(client_p), client_p->host);
use_id(&me), use_id(client_p), newhost);

change_nick_user_host(client_p, client_p->name, client_p->username, newhost, 0, "Changing host");

Expand Down
8 changes: 4 additions & 4 deletions extensions/ip_cloaking_4.0.c
Expand Up @@ -51,17 +51,17 @@ distribute_hostchange(struct Client *client_p, char *newhost)
{
if (newhost != client_p->orighost)
sendto_one_numeric(client_p, RPL_HOSTHIDDEN, "%s :is now your hidden host",
client_p->host);
newhost);
else
sendto_one_numeric(client_p, RPL_HOSTHIDDEN, "%s :hostname reset",
client_p->host);
newhost);

sendto_server(NULL, NULL,
CAP_EUID | CAP_TS6, NOCAPS, ":%s CHGHOST %s :%s",
use_id(&me), use_id(client_p), client_p->host);
use_id(&me), use_id(client_p), newhost);
sendto_server(NULL, NULL,
CAP_TS6, CAP_EUID, ":%s ENCAP * CHGHOST %s :%s",
use_id(&me), use_id(client_p), client_p->host);
use_id(&me), use_id(client_p), newhost);

change_nick_user_host(client_p, client_p->name, client_p->username, newhost, 0, "Changing host");

Expand Down
8 changes: 4 additions & 4 deletions extensions/ip_cloaking_old.c
Expand Up @@ -48,17 +48,17 @@ distribute_hostchange(struct Client *client_p, char *newhost)
{
if (newhost != client_p->orighost)
sendto_one_numeric(client_p, RPL_HOSTHIDDEN, "%s :is now your hidden host",
client_p->host);
newhost);
else
sendto_one_numeric(client_p, RPL_HOSTHIDDEN, "%s :hostname reset",
client_p->host);
newhost);

sendto_server(NULL, NULL,
CAP_EUID | CAP_TS6, NOCAPS, ":%s CHGHOST %s :%s",
use_id(&me), use_id(client_p), client_p->host);
use_id(&me), use_id(client_p), newhost);
sendto_server(NULL, NULL,
CAP_TS6, CAP_EUID, ":%s ENCAP * CHGHOST %s :%s",
use_id(&me), use_id(client_p), client_p->host);
use_id(&me), use_id(client_p), newhost);

change_nick_user_host(client_p, client_p->name, client_p->username, newhost, 0, "Changing host");

Expand Down

0 comments on commit 2450b9d

Please sign in to comment.