Skip to content

Instantly share code, notes, and snippets.

@bloodywing
Created July 7, 2014 17:20
Show Gist options
  • Select an option

  • Save bloodywing/11dda01adfc262db838a to your computer and use it in GitHub Desktop.

Select an option

Save bloodywing/11dda01adfc262db838a to your computer and use it in GitHub Desktop.
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