Menu

#21 Kick user when logging in. (Ghost fix)

open
nobody
None
5
2003-02-27
2003-02-27
No

This is my attempt at a fix for the ghost user
problems. It simply does what the nmdc hub does, it
kicks the already logged in user when someone logs in.

I've only tested it briefly, won't promise it works and
it might morph the hub into a memory eating black void,
who knows. But hopefully someone will iron it out.

It adds a new variable to the user_t struct. This could
be dynamically allocated instead but for the moment it
was easier to make it static. No problems with
forgetting to free().

Don't use this on any important hubs :)

Discussion

  • Kent Nilsson

    Kent Nilsson - 2003-02-27

    NMDC style login. (Kicks already logged in user)

     
  • Lost Soul

    Lost Soul - 2003-03-04

    Logged In: YES
    user_id=584531

    Does this compare the IP addresses of the new user and the
    existing user, if both nicks are the same, before kicking m8 ?

     
  • Kent Nilsson

    Kent Nilsson - 2003-03-04

    Logged In: YES
    user_id=46238

    It only disconnects registered users ghosts, and only if the
    password is correct.

     
  • Kent Nilsson

    Kent Nilsson - 2003-03-04

    Logged In: YES
    user_id=46238

    It only disconnects the existing user if a registered user
    logs in. So the user must supply a correct password.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.