-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow connection settings (like server, port, password) to be set via…
… a class, making it easier to add new settings.
- Loading branch information
1 parent
2ed01fc
commit 285a24c
Showing
2 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.jibble.pircbot; | ||
|
||
public class ConnectionSettings { | ||
public String server; | ||
public int port = 6667; | ||
public String password; | ||
|
||
public ConnectionSettings(String server) { | ||
this.server = server; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters