|
@@ -41,10 +41,7 @@ import com.dmdirc.parser.interfaces.ClientInfo;
|
41
|
41
|
import com.dmdirc.parser.interfaces.Parser;
|
42
|
42
|
import com.dmdirc.parser.interfaces.SecureParser;
|
43
|
43
|
import com.dmdirc.parser.interfaces.StringConverter;
|
44
|
|
-import com.dmdirc.parser.irc.IRCParser;
|
45
|
|
-import com.dmdirc.parser.irc.IRCStringConverter;
|
46
|
|
-import com.dmdirc.parser.irc.MyInfo;
|
47
|
|
-import com.dmdirc.parser.irc.ServerInfo;
|
|
44
|
+import com.dmdirc.parser.common.MyInfo;
|
48
|
45
|
import com.dmdirc.ui.WindowManager;
|
49
|
46
|
import com.dmdirc.ui.input.TabCompleter;
|
50
|
47
|
import com.dmdirc.ui.input.TabCompletionType;
|
|
@@ -143,7 +140,7 @@ public class Server extends WritableFrameContainer implements Serializable {
|
143
|
140
|
private final IgnoreList ignoreList = new IgnoreList();
|
144
|
141
|
|
145
|
142
|
/** Our string convertor. */
|
146
|
|
- private StringConverter converter = new IRCStringConverter();
|
|
143
|
+ private StringConverter converter;
|
147
|
144
|
|
148
|
145
|
// </editor-fold>
|
149
|
146
|
|
|
@@ -674,36 +671,6 @@ public class Server extends WritableFrameContainer implements Serializable {
|
674
|
671
|
|
675
|
672
|
// <editor-fold defaultstate="collapsed" desc="Miscellaneous methods">
|
676
|
673
|
|
677
|
|
- /**
|
678
|
|
- * Construsts a {@link ServerInfo} object for the specified details.
|
679
|
|
- *
|
680
|
|
- * @param server The hostname or IP address of the server
|
681
|
|
- * @param port The port of the server
|
682
|
|
- * @param password The password to use, if any
|
683
|
|
- * @param ssl Whether or not to use SSL
|
684
|
|
- * @return An appropriately configured ServerInfo instance
|
685
|
|
- */
|
686
|
|
- private ServerInfo buildServerInfo(final String server, final int port,
|
687
|
|
- final String password, final boolean ssl) {
|
688
|
|
- final ServerInfo myInfo = new ServerInfo(server, port, password);
|
689
|
|
- myInfo.setSSL(ssl);
|
690
|
|
-
|
691
|
|
- if (getConfigManager().hasOptionString(DOMAIN_SERVER, "proxy.address")) {
|
692
|
|
- myInfo.setUseSocks(true);
|
693
|
|
-
|
694
|
|
- myInfo.setProxyHost(getConfigManager()
|
695
|
|
- .getOption(DOMAIN_SERVER, "proxy.address"));
|
696
|
|
- myInfo.setProxyUser(getConfigManager()
|
697
|
|
- .getOption(DOMAIN_SERVER, "proxy.user"));
|
698
|
|
- myInfo.setProxyPass(getConfigManager()
|
699
|
|
- .getOption(DOMAIN_SERVER, "proxy.password"));
|
700
|
|
- myInfo.setProxyPort(getConfigManager()
|
701
|
|
- .getOptionInt(DOMAIN_SERVER, "proxy.port"));
|
702
|
|
- }
|
703
|
|
-
|
704
|
|
- return myInfo;
|
705
|
|
- }
|
706
|
|
-
|
707
|
674
|
/**
|
708
|
675
|
* Builds an appropriately configured {@link IRCParser} for this server.
|
709
|
676
|
*
|
|
@@ -822,7 +789,7 @@ public class Server extends WritableFrameContainer implements Serializable {
|
822
|
789
|
/** {@inheritDoc} */
|
823
|
790
|
@Override
|
824
|
791
|
public int getMaxLineLength() {
|
825
|
|
- return IRCParser.MAX_LINELENGTH;
|
|
792
|
+ return parser == null ? -1 : parser.getMaxLength();
|
826
|
793
|
}
|
827
|
794
|
|
828
|
795
|
/**
|