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.quirks = quirks
|
||||||
self.userprofile["quirks"] = self.quirks.plainList()
|
self.userprofile["quirks"] = self.quirks.plainList()
|
||||||
self.save()
|
self.save()
|
||||||
|
def getRandom(self):
|
||||||
|
return self.randoms
|
||||||
def setRandom(self, random):
|
def setRandom(self, random):
|
||||||
self.randoms = random
|
self.randoms = random
|
||||||
self.userprofile["randoms"] = random
|
self.userprofile["randoms"] = random
|
||||||
|
|
|
@ -14,10 +14,11 @@ class RandomHandler(QtCore.QObject):
|
||||||
self.mainwindow.sendNotice.emit("?", self.randNick)
|
self.mainwindow.sendNotice.emit("?", self.randNick)
|
||||||
|
|
||||||
def setRandomer(self, r):
|
def setRandomer(self, r):
|
||||||
if r: code = "+"
|
if r != self.mainwindow.userprofile.getRandom():
|
||||||
else: code = "-"
|
if r: code = "+"
|
||||||
self.queue.append(code)
|
else: code = "-"
|
||||||
self.mainwindow.sendNotice.emit(code, self.randNick)
|
self.queue.append(code)
|
||||||
|
self.mainwindow.sendNotice.emit(code, self.randNick)
|
||||||
|
|
||||||
@QtCore.pyqtSlot()
|
@QtCore.pyqtSlot()
|
||||||
def getEncounter(self):
|
def getEncounter(self):
|
||||||
|
|
Loading…
Reference in a new issue