Bug fix: Exit dumps bluh
This commit is contained in:
parent
18d1536bc9
commit
f6b800a482
3 changed files with 7 additions and 23 deletions
|
@ -30,6 +30,7 @@ Bugs
|
|||
* Closing a timeclone doesn't actually cease for everyone else
|
||||
* Alt characters break quirks
|
||||
* +q(~) and +a(&) do weird things
|
||||
* Kill Zalgo
|
||||
|
||||
Windows Bugs
|
||||
------------
|
||||
|
|
21
dataobjs.py
21
dataobjs.py
|
@ -232,23 +232,10 @@ class PesterProfile(object):
|
|||
def idlemsg(self, syscolor, verb):
|
||||
return "<c=%s>-- %s <c=%s>[%s]</c> %s --</c>" % (syscolor.name(), self.handle, self.colorhtml(), self.initials(), verb)
|
||||
def memoclosemsg(self, syscolor, initials, verb):
|
||||
msg = "<c=%s><c=%s>" % (syscolor.name(), self.colorhtml())
|
||||
for i,n in initials.iteritems():
|
||||
msg += i
|
||||
if len(n) == 1:
|
||||
if n[0] != 0:
|
||||
msg += str(n[0])
|
||||
elif len(n) > 1:
|
||||
n.sort()
|
||||
msg += str(n[0])
|
||||
last = n[0]
|
||||
pos = 1
|
||||
while n[pos] == last+1:
|
||||
|
||||
last += 1
|
||||
msg += "%s-%s" % (min(n), max(n))
|
||||
msg += ", "
|
||||
return msg[:-2] + "</c> %s.</c>" % (verb)
|
||||
if type(initials) == type(list()):
|
||||
return "<c=%s><c=%s>%s</c> %s.</c>" % (syscolor.name(), self.colorhtml(), ", ".join(initials), verb)
|
||||
else:
|
||||
return "<c=%s><c=%s>%s%s%s</c> %s.</c>" % (syscolor.name(), self.colorhtml(), initials.pcf, self.initials(), initials.number, verb)
|
||||
def memoopenmsg(self, syscolor, td, timeGrammar, verb, channel):
|
||||
(temporal, pcf, when) = (timeGrammar.temporal, timeGrammar.pcf, timeGrammar.when)
|
||||
timetext = timeDifference(td)
|
||||
|
|
8
memos.py
8
memos.py
|
@ -791,15 +791,11 @@ class PesterMemo(PesterConvo):
|
|||
self.userlist.takeItem(self.userlist.row(c))
|
||||
if not self.times.has_key(h):
|
||||
self.times[h] = TimeTracker(timedelta(0))
|
||||
allinitials = {}
|
||||
allinitials = []
|
||||
while self.times[h].getTime() is not None:
|
||||
t = self.times[h]
|
||||
grammar = t.getGrammar()
|
||||
#allinitials.append("%s%s%s" % (grammar.pcf, chum.initials(), grammar.number))
|
||||
if "%s%s" % (grammar.pcf, chum.initials()) in allinitials:
|
||||
allinitials["%s%s" % (grammar.pcf, chum.initials())].append(int(grammar.number) if grammar.number.isdigit() else 0)
|
||||
else:
|
||||
allinitials["%s%s" % (grammar.pcf, chum.initials())] = [int(grammar.number) if grammar.number.isdigit() else 0]
|
||||
allinitials.append("%s%s%s" % (grammar.pcf, chum.initials(), grammar.number))
|
||||
self.times[h].removeTime(t.getTime())
|
||||
msg = chum.memoclosemsg(systemColor, allinitials, self.mainwindow.theme["convo/text/closememo"])
|
||||
self.textArea.append(convertTags(msg))
|
||||
|
|
Loading…
Reference in a new issue