[wpdev-commits] xmlscripts/scripts/commands password.py,1.2,1.3 who.py,1.1,1.2
Brought to you by:
rip,
thiagocorrea
From: Richard M. <dr...@us...> - 2004-07-17 12:56:31
|
Update of /cvsroot/wpdev/xmlscripts/scripts/commands In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26626/commands Modified Files: password.py who.py Log Message: Tweaks to password.py Added the documentation info to who.py Index: who.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/who.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** who.py 17 Jul 2004 12:29:08 -0000 1.1 --- who.py 17 Jul 2004 12:56:22 -0000 1.2 *************** *** 1,3 **** ! import wolfpack import wolfpack.sockets --- 1,13 ---- ! #===============================================================# ! # ) (\_ | WOLFPACK 13.0.0 Scripts ! # (( _/{ "-; | Created by: Dreoth ! # )).-' {{ ;'` | Revised by: ! # ( ( ;._ \\ ctr | Last Modification: Ported from core ! #===============================================================# ! """ ! \command who ! \description Manage connected clients. ! \notes The gump shown will allow you to travel to the client, send messages or bring them directly to you. ! """ import wolfpack import wolfpack.sockets Index: password.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/password.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** password.py 9 Jul 2004 21:08:36 -0000 1.2 --- password.py 17 Jul 2004 12:56:22 -0000 1.3 *************** *** 19,35 **** # Handles the password command def commandPassword( socket, cmd, args ): char = socket.player args = args.strip() account = wolfpack.accounts.find( char.account.name ) ! if len(args) == 0: socket.sysmessage( "Usage: password <newpassword>" ) return False ! elif len( args ) > 0: ! password = args[0] if len( password ) > 16: socket.sysmessage( "Your password can have a maximum of 16 characters." ) return False else: ! account.password = password socket.sysmessage( "Your password has been changed." ) char.log( LOG_MESSAGE, "Account %s changed their password.\n" % char.serial ) --- 19,37 ---- # Handles the password command def commandPassword( socket, cmd, args ): + account = None + password = None char = socket.player args = args.strip() account = wolfpack.accounts.find( char.account.name ) ! password = str( args ) ! if len( password ) == 0: socket.sysmessage( "Usage: password <newpassword>" ) return False ! elif len( password ) > 0: if len( password ) > 16: socket.sysmessage( "Your password can have a maximum of 16 characters." ) return False else: ! account.password = str( password ) socket.sysmessage( "Your password has been changed." ) char.log( LOG_MESSAGE, "Account %s changed their password.\n" % char.serial ) |