Skip to content

Commit

Permalink
Make sure the key is passed on to other servers
Browse files Browse the repository at this point in the history
  • Loading branch information
cryogen committed Jul 13, 2016
1 parent 71984f8 commit bf1fd8b
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions modules/m_svsjoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,27 @@ ms_svsjoin(struct Client *client_p, struct Client *source_p,
{
if (target_p->from != client_p)
{
char *key;
char *seperator;

if(parv[3] == NULL)
{
key = "";
seperator = "";
}
else
{
key = parv[3];
seperator = " ";
}

if (IsCapable(target_p->from, CAP_ENCAP))
sendto_one(target_p, ":%s ENCAP %s SVSJOIN %s %s",
sendto_one(target_p, ":%s ENCAP %s SVSJOIN %s %s%s%s",
source_p->name, target_p->from->name,
target_p->name, parv[2]);
target_p->name, parv[2], seperator, key);
else
sendto_one(target_p, ":%s SVSJOIN %s %s",
source_p->name, target_p->name, parv[2]);
sendto_one(target_p, ":%s SVSJOIN %s %s%s%s",
source_p->name, target_p->name, parv[2], seperator, key);
}

return;
Expand Down

0 comments on commit bf1fd8b

Please sign in to comment.