Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 14 lines (11 sloc) 0.331 kB
38be0d3 @indivisible-irl moved quit command to the settings and making moves towards a log
indivisible-irl authored
1 class ChatLog:
2
3 def __init__(self):
4 self.LOG_LENGTH = 15
5 self.chats = list()
6
7 def addLog(self, logMessage):
8 self.chats.append(logMessage)
9 if len(self.chats) >= self.LOG_LENGTH:
10 del self.chats[0]
11
12 def playLog(self):
13 for msg in self.chats:
14 print msg
Something went wrong with that request. Please try again.