From a6403e09b34f93abff77a675f658e338ce7c8961 Mon Sep 17 00:00:00 2001 From: "Unreal3.4" Date: Wed, 29 Apr 2015 20:14:45 +0000 Subject: [PATCH] Uh. Well, I noticed a compilation error in the Git alpha, decided to mess with permanent.c, noticed that delayjoin.c didn't really work properly, modified delayjoin.c to send hosts with unhiding users, and here you have, a pull request from your worst nightmare. --- src/modules/chanmodes/delayjoin.c | 4 ++-- src/modules/chanmodes/permanent.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/chanmodes/delayjoin.c b/src/modules/chanmodes/delayjoin.c index b7d2f516b..d27a237d1 100644 --- a/src/modules/chanmodes/delayjoin.c +++ b/src/modules/chanmodes/delayjoin.c @@ -228,7 +228,7 @@ DLLFUNC void clear_user_invisible_announce(aChannel *chptr, aClient *sptr) { if (!is_skochanop(i->cptr,chptr) && i->cptr != sptr) sendto_one(i->cptr, - ":%s JOIN :%s", sptr->name, chptr->chname); + ":%s!%s@%s JOIN :%s", sptr->name, sptr->user->username, GetHost(sptr), chptr->chname); } } @@ -340,7 +340,7 @@ DLLFUNC int moded_chanmode(aClient *cptr, aClient *sptr, aChannel *chptr, if (i->cptr == user) continue; if (moded_user_invisible(i->cptr,chptr)) - sendto_one(user,":%s JOIN :%s", i->cptr->name, chptr->chname); + sendto_one(user,":%s!%s@%s JOIN :%s", i->cptr->name, i->cptr->user->username, GetHost(i->cptr), chptr->chname); } } diff --git a/src/modules/chanmodes/permanent.c b/src/modules/chanmodes/permanent.c index 59708d5a0..066f73f0a 100644 --- a/src/modules/chanmodes/permanent.c +++ b/src/modules/chanmodes/permanent.c @@ -22,6 +22,7 @@ #include #include "struct.h" #include "common.h" +#include "numeric.h" #include "sys.h" #include "h.h"