? ghostkill.patch
? bin/f
? libgnuworld/ltdl.h
Index: doc/cservice.sql
===================================================================
RCS file: /cvsroot/gnuworld/gnuworld/doc/cservice.sql,v
retrieving revision 1.73
diff -r1.73 cservice.sql
190c190
< -- 0x00 02 -- Logged in (Depricated).
---
> -- 0x00 02 -- Logged in (Deprecated).
194a195
> -- 0x00 40 -- Allow Ghost Kill - Kill existing clients on log in.
Index: mod.cservice/LOGINCommand.cc
===================================================================
RCS file: /cvsroot/gnuworld/gnuworld/mod.cservice/LOGINCommand.cc,v
retrieving revision 1.49
diff -r1.49 LOGINCommand.cc
111a112,125
> 
> if (theUser->getFlag(sqlUser::F_GHOSTKILL) &&
>     theUser->networkClientList.size())
> {
>   bot->noticeAllAuthedClients(theUser,
>     "%s has just authenticated as you (%s). "
>     "You have GHOSTKILL enabled, so you will be killed.",
>                               theClient->getNickUserHost().c_str(),
>                               theUser->getUserName().c_str());
>   while (theUser->networkClientList.size())
>     bot->Kill(theUser->networkClientList.front(),
>               "Ghost Overruled(new login)");
> }
> 
116c130
< if(theUser->networkClientList.size() + 1 > theUser->getMaxLogins())
---
> else if (theUser->networkClientList.size() + 1 > theUser->getMaxLogins())
Index: mod.cservice/SETCommand.cc
===================================================================
RCS file: /cvsroot/gnuworld/gnuworld/mod.cservice/SETCommand.cc,v
retrieving revision 1.52
diff -r1.52 SETCommand.cc
126a127,156
>         if (option == "GHOSTKILL")
> 	{
>           if (theUser->networkClientList.size() != 1)
>             bot->Notice(theClient,
>                         "You cannot change your GHOSTKILL value when you have "
>                         "more than one client logged in. Wait for any ghosts "
>                         "to die first.");
>           else if (value == "ON")
>           {
>             theUser->setFlag(sqlUser::F_GHOSTKILL);
>             theUser->commit(theClient);
>             bot->Notice(theClient, "You will now be killed if you log on "
>                         "again.");
>           }
>           else if (value == "OFF")
>           {
>             theUser->setFlag(sqlUser::F_GHOSTKILL);
>             theUser->commit(theClient);
>             bot->Notice(theClient, "You will no longer be killed if you log "
>                                    "on again.");
>           }
>           else
>             bot->Notice(theClient,
> 			bot->getResponse(theUser,
>                                          language::set_cmd_syntax_on_off,
>                                          string("value of %s must be "
>                                                 "ON or OFF")).c_str(),
> 			option.c_str());
>           return true;
>         }
145d174
< 
Index: mod.cservice/sqlUser.cc
===================================================================
RCS file: /cvsroot/gnuworld/gnuworld/mod.cservice/sqlUser.cc,v
retrieving revision 1.37
diff -r1.37 sqlUser.cc
35a36
> const sqlUser::flagType sqlUser::F_GHOSTKILL =		0x40 ;
Index: mod.cservice/sqlUser.h
===================================================================
RCS file: /cvsroot/gnuworld/gnuworld/mod.cservice/sqlUser.h,v
retrieving revision 1.32
diff -r1.32 sqlUser.h
32a33
> 	static const flagType F_GHOSTKILL;
