1. David Lazar
  2. PircBot

Commits

David Lazar  committed 2eab40f

Add a ConnectionSettings clone() method.

  • Participants
  • Parent commits 1107694
  • Branches default

Comments (0)

Files changed (1)

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

View file
  • Ignore whitespace
     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;
+    }
 }