This commit is contained in:
Dmitry Isaenko 2020-11-02 01:28:08 +03:00
parent d6ccf25775
commit c7e2912045
3 changed files with 4 additions and 4 deletions

View file

@ -85,7 +85,7 @@ public class CTCPHelper {
if (notFoundMessage == null) if (notFoundMessage == null)
continue; continue;
System.out.println(serverReplied + " PRIVMSG " + channelOrUser + " :" + notFoundMessage + whoNotFound); //System.out.println(serverReplied + " PRIVMSG " + channelOrUser + " :" + notFoundMessage + whoNotFound);
StreamProvider.writeToStream(serverReplied, "PRIVMSG " + channelOrUser + " :" + notFoundMessage + whoNotFound); StreamProvider.writeToStream(serverReplied, "PRIVMSG " + channelOrUser + " :" + notFoundMessage + whoNotFound);
} }
} }

View file

@ -123,7 +123,7 @@ public class SystemConsumer implements Runnable{
+ " [nickname already in use and will be changed]"); + " [nickname already in use and will be changed]");
break; break;
case "353": case "353":
writerWorker.log("catch/handled:", eventNum+" [RPL_NAMREPLY]"); writerWorker.log("handled:", eventNum+" [RPL_NAMREPLY]");
String channelName = message.substring(nick.length()+3).replaceAll("\\s.*$", ""); String channelName = message.substring(nick.length()+3).replaceAll("\\s.*$", "");
IrcChannel ircChannel = channels.get(channelName); IrcChannel ircChannel = channels.get(channelName);
@ -151,7 +151,7 @@ public class SystemConsumer implements Runnable{
Thread newIrcChannelThread = new Thread(consumer); Thread newIrcChannelThread = new Thread(consumer);
newIrcChannelThread.start(); newIrcChannelThread.start();
channelThreads.add(newIrcChannelThread); channelThreads.add(newIrcChannelThread);
//proxyAList.get(message).add(eventNum+" "+sender+" "+message); // Add message to array linked newIrcChannel.getChannelQueue().add(sender+" "+eventNum+" "+message);
writerWorker.log("joined channel ", message); writerWorker.log("joined channel ", message);
} }
break; break;

View file

@ -87,7 +87,7 @@ public class WorkerSystem{
if (consistent) if (consistent)
logToFile(message); logToFile(message);
else else
System.out.println(message); System.out.print(message);
} }
private void logToFile(String message){ private void logToFile(String message){
try { try {