Fixed possible runtime error in inactivityLoop()
Fixed infinite loop involving telnet users.
Merge pull request #36 from koyeall/master

Important bug fixes.