[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LIST, service or fix of code
On Mon, 12 Apr 1999, Thomas Kuiper (the man that doesn't honour Reply-To:)
;) wrote:
> > > (another user joines channel)
> > > CHANNEL #ircd 2
> > Ah, VCHANNEL ... (is this new?)
> whats that?
SERVICE_WANT_VCHANNEL (visitor# on channel?). There's a distinct
difference in SERVICE_WANT_CHANNEL and SERVICE_WANT_VCHANNEL. I must have
tried with SERVICE_WANT_CHANNEL a long time ago and only seen members 0
and 1. VCHANNEL also gets 2 3 4 5 etc.
robert@irc(0) ~ $ grep -3 SERVICE_WANT_VCHANNEL ~ircd/sources/ircd2.10.2/sources/irc2.10.2+Cr+Fl+Nl/ircd/channel.c
#ifdef USE_SERVICES
if (chptr->users == 1)
check_services_butone(SERVICE_WANT_CHANNEL|
SERVICE_WANT_VCHANNEL,
NULL, &me, "CHANNEL %s %d",
chptr->chname, chptr->users);
else
check_services_butone(SERVICE_WANT_VCHANNEL,
NULL, &me, "CHANNEL %s %d",
chptr->chname, chptr->users);
#endif
--
#ifdef USE_SERVICES
if (chptr->users == 1) check_services_butone(SERVICE_WANT_CHANNEL|
SERVICE_WANT_VCHANNEL, NULL, &me,
"CHANNEL %s %d", chptr->chname,
chptr->users-1);
else
check_services_butone(SERVICE_WANT_VCHANNEL, NULL, &me,
"CHANNEL %s %d", chptr->chname,
chptr->users-1);
#endif
(I think I can blame Argus for that directory structure) ;)
> hm, yes, right
>
> TOPIC #ircd bleh
>
> would be nicer for the service tor receive it.
> (Everything in its correct pipe)
> so you dont need the number of people if you only want to receive
> the topic in the future.
Definately.
-- Robert Martin-Legène / Null ! robert@xxxxxxxxxxxxx
I suck.