mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-04 08:39:23 +00:00
Simplified code
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
package org.parabot.core.forum;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.parabot.core.Configuration;
|
||||
import org.parabot.core.Core;
|
||||
import org.parabot.core.parsers.scripts.SDNScripts;
|
||||
@@ -13,6 +9,10 @@ import org.parabot.environment.api.utils.WebUtil;
|
||||
import org.parabot.environment.scripts.executers.SDNScriptExecuter;
|
||||
import org.parabot.environment.servers.executers.PublicServerExecuter;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Handles logging in to parabot forum, only certain classes may use this class.
|
||||
*
|
||||
@@ -62,7 +62,7 @@ public final class AccountManager {
|
||||
if (account != null) {
|
||||
throw new IllegalStateException("Already logged in.");
|
||||
}
|
||||
String contents = null;
|
||||
String contents;
|
||||
try {
|
||||
contents = WebUtil.getContents(String.format(
|
||||
Configuration.LOGIN_SERVER,
|
||||
|
||||
Reference in New Issue
Block a user