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