[wpdev-commits] wolfpack commands.cpp,1.243,1.244
Brought to you by:
rip,
thiagocorrea
From: Richard M. <dr...@us...> - 2004-07-09 08:37:54
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14368 Modified Files: commands.cpp Log Message: Password ported as well. Index: commands.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/commands.cpp,v retrieving revision 1.243 retrieving revision 1.244 diff -C2 -d -r1.243 -r1.244 *** commands.cpp 9 Jul 2004 08:24:28 -0000 1.243 --- commands.cpp 9 Jul 2004 08:37:45 -0000 1.244 *************** *** 819,849 **** /* - \command password - \description Change your current password. - \usage - <code>password [value]</code> - Value is the new password for your account. Its length is - limited to 30 characters. - */ - void commandPassword( cUOSocket* socket, const QString& command, const QStringList& args ) throw() - { - Q_UNUSED( command ); - if ( args.count() < 1 ) - { - socket->sysMessage( tr( "Usage: password <newpassword>" ) ); - return; - } - - QString password = args.join( " " ); - if ( password.length() > 30 ) - { - socket->sysMessage( tr( "Your password can have a maximum of 30 characters." ) ); - return; - } - - socket->account()->setPassword( password ); - socket->sysMessage( tr( "Your password has been changed." ) ); - } - - /* \command gmtalk \description Broadcast a message to connected gamemasters. --- 819,822 ---- *************** *** 884,888 **** enum DoorFacing { ! WestCW = 0, EastCCW, WestCCW, --- 857,861 ---- enum DoorFacing { ! WestCW = 0, EastCCW, WestCCW, *************** *** 1120,1124 **** { "PAGES", commandPages }, { "PAGENOTIFY", commandPageNotify }, - { "PASSWORD", commandPassword }, { "RELOAD", commandReload }, { "REMOVE", commandRemove }, --- 1093,1096 ---- |