All pastes #29614 Raw Edit

nauti

public java v1 · immutable
#29614 ·published 2005-11-20 15:47 UTC
rendered paste body
	        if (arg.length == 3) {	            try {	                SkyNetClientImpl.myPersonality = SkyNetClientImpl.manager.login(arg[1], DSLabUtils.hashTextWithSHA(arg[2]), SkyNetClientImpl.listener);	                if(SkyNetClientImpl.myPersonality == null) {	                	throw new BuddyNotFoundException("not found");	                }	                loggedIn = true;	                System.out.println("SkyNet says: user " + SkyNetClientImpl.myPersonality.getNickname() + " successfully logged in!");	            } catch (BuddyNotFoundException bnfe) {	                throw bnfe;	            } catch (RemoteException re) {	                throw new SkyNetException(re.getMessage());	            }	        } else {	            throw new SkyNetCommandException("login", "usage: login <nickname> <password>");	        }