Hello,
With my bot I want to send a whois request to get the getRegisteredAs name. I have the following piece of code.
WaitForQueue queue = new WaitForQueue(event.getBot());
bot.sendIRC().message("nickserv", "info " + event.getUser().getNick());
WhoisEvent currentEvent = queue.waitFor(WhoisEvent.class);
queue.close();
But sending the whois request before the queue.waitFor doesn't work because it wont detect it because it already happend, and sending it after doesnt work either because it keeps waiting till there has been a whois.
Is there any way to solve this?