Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ckscor3 committed Aug 22, 2016
1 parent fd2efff commit 980dbb6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/bl4ckscor3/bot/bl4ckb0t/ConfigurationFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class ConfigurationFile
"# Other #",
"################################",
"showCmdColorsInHelpMenu=true",
"allowBlacklistWebpages=true",
"allowBlacklistWebsites=true",
"allowIgnoringUsers=true",
"allowCommandAliases=true",
"showGitHubRepoInfo=true",
Expand Down
10 changes: 5 additions & 5 deletions src/bl4ckscor3/bot/bl4ckb0t/Startup.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static void setDefaultChans() throws MalformedURLException, IOException
return;
}

BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("https://irc.akino-germany.tk/bl4ckb0t/files/bl4ckb0t chans.txt").openStream()));
BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("https://akino.canopus.uberspace.de/bl4ckb0t/files/defaultChannels.txt").openStream()));
String line = "";

while((line = reader.readLine()) != null)
Expand All @@ -97,7 +97,7 @@ public static void setDefaultChans() throws MalformedURLException, IOException
*/
private static void setAllowedUsers() throws MalformedURLException, IOException
{
BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("https://irc.akino-germany.tk/bl4ckb0t/files/allowedUsers.txt").openStream()));
BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("https://akino.canopus.uberspace.de/bl4ckb0t/files/allowedUsers.txt").openStream()));
String line = "";

while((line = reader.readLine()) != null)
Expand All @@ -113,7 +113,7 @@ private static void setAllowedUsers() throws MalformedURLException, IOException
*/
private static void setValidUsers() throws MalformedURLException, IOException
{
BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("https://irc.akino-germany.tk/bl4ckb0t/files/validUsers.txt").openStream()));
BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("https://akino.canopus.uberspace.de/bl4ckb0t/files/validUsers.txt").openStream()));
String line = "";

while((line = reader.readLine()) != null)
Expand All @@ -129,7 +129,7 @@ private static void setValidUsers() throws MalformedURLException, IOException
*/
private static void setIgnoredUsers() throws MalformedURLException, IOException
{
BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("https://irc.akino-germany.tk/bl4ckb0t/files/ignoredUsers.txt").openStream()));
BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("https://akino.canopus.uberspace.de/bl4ckb0t/files/ignoredUsers.txt").openStream()));
String line = "";

while((line = reader.readLine()) != null)
Expand All @@ -149,7 +149,7 @@ private static void setIgnoredUsers() throws MalformedURLException, IOException
*/
private static void setBlacklistedWebsites() throws MalformedURLException, IOException
{
BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("https://irc.akino-germany.tk/bl4ckb0t/files/blacklistedWebsites.txt").openStream()));
BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("https://akino.canopus.uberspace.de/bl4ckb0t/files/blacklistedWebsites.txt").openStream()));
String line = "";

while((line = reader.readLine()) != null)
Expand Down
2 changes: 1 addition & 1 deletion src/bl4ckscor3/bot/bl4ckb0t/misc/LinkManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static void checkForLinkAndSendTitle(MessageEvent event) throws Malformed

if(s.contains("www.") || s.contains("http://") || s.contains("https://"))
{
if(Core.bot.getConfig().isEnabled("allowBlacklistWebpages") && isWebsiteBlacklisted(s))
if(Core.bot.getConfig().isEnabled("allowBlacklistWebsites") && isWebsiteBlacklisted(s))
{
Logging.info("Website blacklisted: " + s);
continue;
Expand Down
2 changes: 1 addition & 1 deletion src/bl4ckscor3/bot/bl4ckb0t/util/Lists.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static void addIgnoredUser(String i)
*/
public static void addBlacklistedWebsite(String i)
{
ignoredUsers.add(i);
blacklistedWebsites.add(i);
Logging.info("Added " + i + " to blacklisted websites list...");
}

Expand Down
2 changes: 1 addition & 1 deletion target/classes/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sendMessage=true
# Other #
################################
showCmdColorsInHelpMenu=true
allowBlacklistWebpages=true
allowBlacklistWebsites=true
allowIgnoringUsers=true
allowCommandAliases=true
showGitHubRepoInfo=true
Expand Down

0 comments on commit 980dbb6

Please sign in to comment.