This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Automatic 5 mins chan stat in egg1.6

Old posts that have not been replied to for several years.
Locked
C
CcL
Voice
Posts: 11
Joined: Fri Apr 04, 2003 11:45 am

Automatic 5 mins chan stat in egg1.6

Post by CcL »

these codes are found in irc.c . would like to deactivate it through a tcl is it possible? I do not want to delete this off and recompile the eggs as some of the eggs runs on precomp... Please help. thanks alot!


/* Report the channel status of every active channel to dcc chat every
* 5 minutes.
*/
static void status_log()
{
masklist *b;
memberlist *m;
struct chanset_t *chan;
char s[20], s2[20];
int chops, halfops, voice, nonops, bans, invites, exempts;

if (!server_online)
return;

for (chan = chanset; chan != NULL; chan = chan->next) {
if (channel_active(chan) && channel_logstatus(chan) &&
!channel_inactive(chan)) {
chops = 0;
voice = 0;
halfops = 0;
for (m = chan->channel.member; m && m->nick[0]; m = m->next) {
if (chan_hasop(m))
chops++;
else if (chan_hashalfop(m))
halfops++;
else if (chan_hasvoice(m))
voice++;
}
nonops = (chan->channel.members - (chops + voice + halfops));

for (bans = 0, b = chan->channel.ban; b->mask[0]; b = b->next)
bans++;
for (exempts = 0, b = chan->channel.exempt; b->mask[0]; b = b->next)
exempts++;
for (invites = 0, b = chan->channel.invite; b->mask[0]; b = b->next)
invites++;

sprintf(s, "%d", exempts);
sprintf(s2, "%d", invites);

putlog(LOG_MISC, chan->dname,
"%s%s (%s) : [m/%d o/%d h/%d v/%d n/%d b/%d e/%s I/%s]",
me_op(chan) ? "@" : me_voice(chan) ? "+" :
me_halfop(chan) ? "%" : "", chan->dname, getchanmode(chan),
chan->channel.members, chops, halfops, voice, nonops, bans,
use_exempts ? s : "-", use_invites ? s2 : "-");
}
}
}
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

.chanset #channel -statuslog
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I have now understood what was with that cros* something thing you've posted. :) Guess he didn't sow my answer or something and posted here also, or something like this.
Once the game is over, the king and the pawn go back in the same box.
Locked