1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 19:02:17 -05:00

PircBot Patch: Added setUseSSL()

This commit is contained in:
Sebastian Kaspari 2010-04-14 00:21:00 +02:00
parent ae08daf81a
commit 4677317507

View File

@ -249,6 +249,17 @@ public abstract class PircBot implements ReplyConstants {
} }
/**
* Set wether SSL should be used to connect to the server
*
* @author Sebastian Kaspari <sebastian@yaaic.org>
*/
public void setUseSSL(boolean useSSL)
{
_useSSL = useSSL;
}
/** /**
* This method disconnects from the server cleanly by calling the * This method disconnects from the server cleanly by calling the
* quitServer() method. Providing the PircBot was connected to an * quitServer() method. Providing the PircBot was connected to an
@ -3010,6 +3021,8 @@ public abstract class PircBot implements ReplyConstants {
// Default settings for the PircBot. // Default settings for the PircBot.
private boolean _autoNickChange = false; private boolean _autoNickChange = false;
private boolean _useSSL = false;
private String _name = "PircBot"; private String _name = "PircBot";
private String _nick = _name; private String _nick = _name;
private String _login = "PircBot"; private String _login = "PircBot";