Make remote numerics to channels work.

Note that +D clients do not get these.  This is consistent
with how ircu treats remote numerics and with how we treat
server notices from other servers, but not with how locally
generated notices and numerics are sent also to +D clients.
This commit is contained in:
Jilles Tjoelker 2007-12-26 22:46:43 +01:00
parent 7f27e3163d
commit 06b697a268

View file

@ -658,9 +658,9 @@ do_numeric(char numeric[], struct Client *client_p, struct Client *source_p, int
return;
}
else if((chptr = find_channel(parv[1])) != NULL)
sendto_channel_local(ALL_MEMBERS, chptr,
":%s %s %s %s",
source_p->name, numeric, chptr->chname, buffer);
sendto_channel_flags(client_p, ALL_MEMBERS, source_p, chptr,
"%s %s%s",
numeric, chptr->chname, buffer);
}
static void do_alias(struct alias_entry *aptr, struct Client *source_p, char *text)