Commits

David Lazar  committed 2eab40f

Add a ConnectionSettings clone() method.

  • Participants
  • Parent commits 1107694

Comments (0)

Files changed (1)

File src/org/jibble/pircbot/ConnectionSettings.java

     public ConnectionSettings(String server) {
         this.server = server;
     }
+
+    public ConnectionSettings clone() {
+        ConnectionSettings cs = new ConnectionSettings(server);
+        cs.port = port;
+        cs.useSSL = useSSL;
+        cs.verifySSL = verifySSL;
+        cs.password = password;
+        return cs;
+    }
 }