v0.2
This commit is contained in:
parent
91dfb5a934
commit
623889602b
2 changed files with 9 additions and 10 deletions
|
@ -70,7 +70,7 @@ public class Connections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (connectionsList.isEmpty()) {
|
if (connectionsList.isEmpty()) {
|
||||||
System.out.println("connectionsList.isEmpty()");
|
System.out.println("connectionsList is empty. Exit.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -173,15 +173,6 @@ public class DataProvider implements Runnable {
|
||||||
|
|
||||||
StreamProvider.writeToStream(serverName,"NICK "+this.userNick);
|
StreamProvider.writeToStream(serverName,"NICK "+this.userNick);
|
||||||
StreamProvider.writeToStream(serverName,"USER "+configFile.getUserIdent()+" 8 * :"+configFile.getUserRealName()); // TODO: Add usermode 4 rusnet
|
StreamProvider.writeToStream(serverName,"USER "+configFile.getUserIdent()+" 8 * :"+configFile.getUserRealName()); // TODO: Add usermode 4 rusnet
|
||||||
if (!configFile.getServerPass().isEmpty())
|
|
||||||
StreamProvider.writeToStream(serverName,"PASS "+configFile.getServerPass());
|
|
||||||
|
|
||||||
if (!configFile.getUserNickPass().isEmpty() && (!configFile.getUserNickAuthStyle().isEmpty() && configFile.getUserNickAuthStyle().toLowerCase().equals("freenode")))
|
|
||||||
StreamProvider.writeToStream(serverName,"PRIVMSG NickServ :IDENTIFY "+configFile.getUserNickPass());
|
|
||||||
else if (!configFile.getUserNickPass().isEmpty() && (!configFile.getUserNickAuthStyle().isEmpty() && configFile.getUserNickAuthStyle().toLowerCase().equals("rusnet")))
|
|
||||||
StreamProvider.writeToStream(serverName,"NickServ IDENTIFY "+configFile.getUserNickPass());
|
|
||||||
else if (!configFile.getUserNickPass().isEmpty())
|
|
||||||
System.out.println("Configuration issue: Unable to determinate method of user nick identification (by password): could be \"freenode\" or \"rusnet\"\nSee \"userNickAuthStyle\".");
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 431 ERR_NONICKNAMEGIVEN how can we get this?
|
// 431 ERR_NONICKNAMEGIVEN how can we get this?
|
||||||
|
@ -230,6 +221,14 @@ public class DataProvider implements Runnable {
|
||||||
StreamProvider.writeToStream(serverName,"PASS "+configFile.getServerPass());
|
StreamProvider.writeToStream(serverName,"PASS "+configFile.getServerPass());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!configFile.getUserNickPass().isEmpty() && (!configFile.getUserNickAuthStyle().isEmpty() && configFile.getUserNickAuthStyle().toLowerCase().equals("freenode")))
|
||||||
|
StreamProvider.writeToStream(serverName,"PRIVMSG NickServ :IDENTIFY "+configFile.getUserNickPass());
|
||||||
|
else if (!configFile.getUserNickPass().isEmpty() && (!configFile.getUserNickAuthStyle().isEmpty() && configFile.getUserNickAuthStyle().toLowerCase().equals("rusnet")))
|
||||||
|
StreamProvider.writeToStream(serverName,"NickServ IDENTIFY "+configFile.getUserNickPass());
|
||||||
|
else if (!configFile.getUserNickPass().isEmpty())
|
||||||
|
System.out.println("Configuration issue: Unable to determinate method of user nick identification (by password): could be \"freenode\" or \"rusnet\"\nSee \"userNickAuthStyle\".");
|
||||||
|
|
||||||
} catch (IOException e){
|
} catch (IOException e){
|
||||||
System.out.println("Internal issue: DataProvider->initConnection() caused I/O exception.");
|
System.out.println("Internal issue: DataProvider->initConnection() caused I/O exception.");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue