def IsOnline(parameters, sender, pm): retval = [] if len(parameters) > 0: for x in parameters: if x == "k9": retval.append(sender + ": I'm right here. No need to shout!\n") elif Online(x.lower()): if AFKList.count(x) > 0: retval.append(x + " has an SSH Tunnel Open, but is AFK\n") else: retval.append(x + " has an SSH Tunnel Open, and is probably on the server somewhere.\n") else: retval.append(x + " does not appear to be connected to Yakko at the moment.\n") else: retval.append(sender + ": Incorrect Syntax. Type #online <user1> <user2>... to see if he/she is online.\n") return retval
def UpdateAFKList(name): while AFKList.count(name) != 0: AFKList.remove(name)