Created
July 7, 2014 17:20
-
-
Save bloodywing/11dda01adfc262db838a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global recents | |
| recents = dict() | |
| def recent(nick): | |
| global recents | |
| recents[nick] = time() | |
| on_recents = list() | |
| for key in recents.keys(): | |
| if recents[key] < time() - 1800: | |
| del recents[key] | |
| elif key is not 'Login': | |
| on_recents.append(key) | |
| return ', '.join(on_recents) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment