Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 55ed28b77c
Fetching contributors…

Cannot retrieve contributors at this time

executable file 14 lines (11 sloc) 0.331 kb
class ChatLog:
def __init__(self):
self.LOG_LENGTH = 15
self.chats = list()
def addLog(self, logMessage):
self.chats.append(logMessage)
if len(self.chats) >= self.LOG_LENGTH:
del self.chats[0]
def playLog(self):
for msg in self.chats:
print msg
Jump to Line
Something went wrong with that request. Please try again.