hidden host stuff

This commit is contained in:
fishwaldo 2002-10-16 05:21:08 +00:00
parent c0211f2e10
commit 42d230731b
2 changed files with 5 additions and 5 deletions

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Id: m_sethost.c,v 1.3 2002/09/13 06:54:34 fishwaldo Exp $ * $Id: m_sethost.c,v 1.4 2002/10/16 05:21:07 fishwaldo Exp $
*/ */
/* List of ircd includes from ../include/ */ /* List of ircd includes from ../include/ */
@ -79,7 +79,7 @@ _moddeinit(void)
/* When we last modified the file (shown in /modlist), this is usually: /* When we last modified the file (shown in /modlist), this is usually:
*/ */
const char *_version = "$Revision: 1.3 $"; const char *_version = "$Revision: 1.4 $";
#endif #endif
/* /*
@ -117,7 +117,7 @@ static void ms_sethost(struct Client *client_p, struct Client *source_p,
strncpy(target_p->vhost, parv[2], HOSTLEN); strncpy(target_p->vhost, parv[2], HOSTLEN);
/* send it to the rest of the net */ /* send it to the rest of the net */
sendto_server(source_p, source_p, NULL, 0, 0, LL_ICLIENT, ":%s SETHOST %s :%s", me.name, source_p->name, source_p->vhost); sendto_server(source_p, source_p, NULL, 0, 0, LL_ICLIENT, ":%s SETHOST %s :%s", source_p->name, target_p->name, target_p->vhost);
return; return;

View file

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA * USA
* *
* $Id: s_user.c,v 1.36 2002/10/16 05:01:53 fishwaldo Exp $ * $Id: s_user.c,v 1.37 2002/10/16 05:21:08 fishwaldo Exp $
*/ */
#include "stdinc.h" #include "stdinc.h"
@ -1046,8 +1046,8 @@ user_mode(struct Client *client_p, struct Client *source_p, int parc, char *parv
/* if they are already hidden, don't hide them again /* if they are already hidden, don't hide them again
* of they are not a local client * of they are not a local client
*/ */
SetHidden(target_p);
if (MyClient(target_p)) { if (MyClient(target_p)) {
SetHidden(target_p);
make_virthost(target_p->host, target_p->localClient->sockhost, target_p->vhost); make_virthost(target_p->host, target_p->localClient->sockhost, target_p->vhost);
sendto_server(NULL, target_p, NULL, 0, 0, LL_ICLIENT, ":%s SETHOST %s :%s", me.name, target_p->name, target_p->vhost); sendto_server(NULL, target_p, NULL, 0, 0, LL_ICLIENT, ":%s SETHOST %s :%s", me.name, target_p->name, target_p->vhost);
} }