1 # synarere -- a highly modular and stable IRC bot.
2 # Copyright (C) 2010 Michael Rodriguez.
3 # Rights to this code are documented in docs/LICENSE.
7 # Import required Python modules.
10 # Import required core modules.
14 '''Infinite loop to handle routines.'''
18 delay
= timer
.next_run()
20 if delay
<= time
.time():
23 # We don't want to poll on no connections because it makes CPU usage skyrocket.
24 # Instead, just sleep.
25 if len(var
.conns
) == 0: