Bug fix: Hopefully finally get Netsplit notification working
This commit is contained in:
parent
65fd1d0b29
commit
216b404a18
2 changed files with 5 additions and 2 deletions
|
@ -239,7 +239,10 @@ class PesterProfile(object):
|
|||
else:
|
||||
return "<c=%s><c=%s>%s%s%s</c> %s.</c>" % (syscolor.name(), self.colorhtml(), initials.pcf, self.initials(), initials.number, verb)
|
||||
def memonetsplitmsg(self, syscolor, initials):
|
||||
return "<c=%s>Netsplit quits: <c=black>%s</c></c>" % (syscolor.name(), ", ".join(initials))
|
||||
if len(initials) <= 0:
|
||||
return "<c=%s>Netsplit quits: <c=black>None</c></c>" % (syscolor.name())
|
||||
else:
|
||||
return "<c=%s>Netsplit quits: <c=black>%s</c></c>" % (syscolor.name(), ", ".join(initials))
|
||||
def memoopenmsg(self, syscolor, td, timeGrammar, verb, channel):
|
||||
(temporal, pcf, when) = (timeGrammar.temporal, timeGrammar.pcf, timeGrammar.when)
|
||||
timetext = timeDifference(td)
|
||||
|
|
2
memos.py
2
memos.py
|
@ -958,7 +958,7 @@ class PesterMemo(PesterConvo):
|
|||
allinitials.append("%s%s%s" % (grammar.pcf, chum.initials(), grammar.number))
|
||||
self.times[h].removeTime(t.getTime())
|
||||
if update == "netsplit":
|
||||
self.netsplit.extend(initials)
|
||||
self.netsplit.extend(allinitials)
|
||||
else:
|
||||
msg = chum.memoclosemsg(systemColor, allinitials, self.mainwindow.theme["convo/text/closememo"])
|
||||
self.textArea.append(convertTags(msg))
|
||||
|
|
Loading…
Reference in a new issue