The org.relayirc.core.IRCConnection object seems to be
parsing replies to ISON requests incorrectly inside
handleReply().
I would suggest something like the code below. It
sends your handler just the list of nicknames that are
on. (If none are on, then it sends your handler an
empty array.):
case RPL_ISON: {
// "<srv> <cmd> <to_nick> :<user1> <user2>
etc"
int userCount = tokens.length - 3;
// Check for no users
if ((userCount == 1) && tokens
[3].token.equals(":"))
userCount = 0;
String[] users = new String[userCount];
if (userCount > 0) {
for (int i=3; i<tokens.length; i++) {
if (i==3)
users[i-3] = tokens
[i].token.substring(1);
else
users[i-3] = tokens[i].token;
}
}
_mux.onIsOn( users );
break;
}