Delay 1 sec before auto joining channels (issue 12)

This commit is contained in:
Sebastian Kaspari 2010-06-26 20:15:09 +02:00
parent ce81dbb956
commit 3169312230
1 changed files with 7 additions and 0 deletions

View File

@ -160,6 +160,13 @@ public class IRCConnection extends PircBot
parser.parse(command, server, server.getConversation(ServerInfo.DEFAULT_NAME), service);
}
// delay 1 sec before auto joining channels
try {
Thread.sleep(1000);
} catch(InterruptedException e) {
// do nothing
}
// join channels
if (autojoinChannels != null) {
for (String channel : autojoinChannels) {