From 46773175078a578311ba343259f1144151c57730 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Wed, 14 Apr 2010 00:21:00 +0200 Subject: [PATCH] PircBot Patch: Added setUseSSL() --- src/org/jibble/pircbot/PircBot.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/org/jibble/pircbot/PircBot.java b/src/org/jibble/pircbot/PircBot.java index a8373b6..81e8456 100644 --- a/src/org/jibble/pircbot/PircBot.java +++ b/src/org/jibble/pircbot/PircBot.java @@ -247,6 +247,17 @@ public abstract class PircBot implements ReplyConstants { } connect(getServer(), getPort(), getPassword()); } + + + /** + * Set wether SSL should be used to connect to the server + * + * @author Sebastian Kaspari + */ + public void setUseSSL(boolean useSSL) + { + _useSSL = useSSL; + } /** @@ -3010,6 +3021,8 @@ public abstract class PircBot implements ReplyConstants { // Default settings for the PircBot. private boolean _autoNickChange = false; + private boolean _useSSL = false; + private String _name = "PircBot"; private String _nick = _name; private String _login = "PircBot";