From: Sean Daley (
Date: 01/14/99

At 10:15 AM 01/14/1999 -0500, you wrote:
>OK, I'm having a bit of a problem....  I wrote this to aid in my fight
>against mulitplaying.  What it does(or rather, supposed to do) is search
>the descriptor list, compare the ips of the current descriptor with that
>of the new one, and if they're equal, warn the player and close the other
>socket.  Now, I haven't been able to get this thing to work.  All the
>variables(chkmulti, warnplay, dc) are equal to 1, and set at the top of
>comm.c.  Anyone see anything that may be wrong?  In the log, it'll only
>display "Starting check of descriptor list".  Thanks in advance!
>  /* Log new connections - probably unnecessary, but you may want it */
>sprintf(buf2, "New connection from [%s]", newd->host);
>          log("Starting check of descriptor list");
>for (d = descriptor_list; d; d = d->next)
>          if(str_cmp(d->host, newd->host) != 0){

I think you might want this check to be == 0.  Right now it's doing
the multiplayer check if the hosts are different.  I could be
wrong since the format was kind of hard to read (not your fault,
email code is just usually hard to read).


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

This archive was generated by hypermail 2b30 : 12/15/00 PST