Ah, didn't realize this until someone politely notified me off the list.
Anyway, yeah, you can't do that at my mud and I welcome anyone to try.
mud.pendulus.org 1536
Here's what I do to stop it:
bool check_connections(DESCRIPTOR_DATA *desc)
{
int count=0;
DESCRIPTOR_DATA *d;
for(d = descriptor_list;d;d = d->next)
{
if (d!=desc && !strcmp(d->Host, desc->Host)){
count++;
if (count>5) return TRUE;
}
}
return FALSE;
}
Then in init_descriptor:
if (check_connections(dnew)){
sprintf (log_buf, "Spam logging from[%i] '%s' (%s)",
dnew->descriptor, dnew->Host, buf);
log_string (log_buf);
wiznet (log_buf, NULL, NULL, WIZ_SITES, 0, 0);
close_socket(dnew);
free_descriptor (dnew);
return;
}
> -----Original Message-----
> From: Chad Simmons [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 25, 2002 1:16 PM
> To: [email protected]
> Subject: RE: NULL_FILE
>
>
>
> --- Jason Gauthier <[EMAIL PROTECTED]> wrote:
> > Elaborate.. what "program" are they going to run inside a
> mud that opens
> > file descriptors?
>
> Ah, I should also clarify.. This is a separate program they
> run. Not something
> they do from within the mud.
>
> ~Kender
>
> =====
> -----BEGIN GEEK CODE BLOCK-----
> Version 3.1
> GCS/L/C/O d-(+) s++:+ a-- C+++$>++++ UBLS++++$
> P+++(--)$ L++>+++ E--- W+>++$ N !o K? w(--) !O
> M- !V PS+ PE(++) Y+ PGP->+ t- 5 X+() R(+) tv+@
> b++(+++) !DI+++ D G(-) e>+++$ h---() r+++ y+++
> ------END GEEK CODE BLOCK------
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards(r)
> http://movies.yahoo.com/
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>