Bug fix: Only send NOTICEs to randomEncounter of options change
This commit is contained in:
parent
97742beab8
commit
79331e17ac
2 changed files with 7 additions and 4 deletions
|
@ -609,6 +609,8 @@ class userProfile(object):
|
|||
self.quirks = quirks
|
||||
self.userprofile["quirks"] = self.quirks.plainList()
|
||||
self.save()
|
||||
def getRandom(self):
|
||||
return self.randoms
|
||||
def setRandom(self, random):
|
||||
self.randoms = random
|
||||
self.userprofile["randoms"] = random
|
||||
|
|
|
@ -14,10 +14,11 @@ class RandomHandler(QtCore.QObject):
|
|||
self.mainwindow.sendNotice.emit("?", self.randNick)
|
||||
|
||||
def setRandomer(self, r):
|
||||
if r: code = "+"
|
||||
else: code = "-"
|
||||
self.queue.append(code)
|
||||
self.mainwindow.sendNotice.emit(code, self.randNick)
|
||||
if r != self.mainwindow.userprofile.getRandom():
|
||||
if r: code = "+"
|
||||
else: code = "-"
|
||||
self.queue.append(code)
|
||||
self.mainwindow.sendNotice.emit(code, self.randNick)
|
||||
|
||||
@QtCore.pyqtSlot()
|
||||
def getEncounter(self):
|
||||
|
|
Loading…
Reference in a new issue