killed self msgs, imporved profile switch behavior
This commit is contained in:
parent
49ed222936
commit
fa4d48f1f5
3 changed files with 18 additions and 14 deletions
3
TODO
3
TODO
|
@ -1,8 +1,7 @@
|
||||||
Features:
|
Features:
|
||||||
* changeColor
|
|
||||||
* protect against messages from yourself :P
|
|
||||||
* Theme Changing
|
* Theme Changing
|
||||||
* Handle user signoffs
|
* Handle user signoffs
|
||||||
|
* Handle nick changes
|
||||||
* Logging
|
* Logging
|
||||||
* Moods
|
* Moods
|
||||||
* Add chum
|
* Add chum
|
||||||
|
|
|
@ -781,15 +781,15 @@ class PesterWindow(MovingWindow):
|
||||||
self.chooseprofile = None
|
self.chooseprofile = None
|
||||||
@QtCore.pyqtSlot()
|
@QtCore.pyqtSlot()
|
||||||
def switchProfile(self):
|
def switchProfile(self):
|
||||||
|
if self.convos:
|
||||||
closeWarning = QtGui.QMessageBox()
|
closeWarning = QtGui.QMessageBox()
|
||||||
closeWarning.setText("WARNING: THIS WILL CLOSE ALL CONVERSATION WINDOWS!")
|
closeWarning.setText("WARNING: THIS WILL CLOSE ALL CONVERSATION WINDOWS!")
|
||||||
closeWarning.setInformativeText("i warned you bro")
|
closeWarning.setInformativeText("i warned you bro! i warned you about those windows")
|
||||||
closeWarning.setStandardButtons(QtGui.QMessageBox.Cancel | QtGui.QMessageBox.Ok)
|
closeWarning.setStandardButtons(QtGui.QMessageBox.Cancel | QtGui.QMessageBox.Ok)
|
||||||
closeWarning.setDefaultButton(QtGui.QMessageBox.Ok)
|
closeWarning.setDefaultButton(QtGui.QMessageBox.Ok)
|
||||||
ret = closeWarning.exec_()
|
ret = closeWarning.exec_()
|
||||||
if ret == QtGui.QMessageBox.Cancel:
|
if ret == QtGui.QMessageBox.Cancel:
|
||||||
return
|
return
|
||||||
elif ret == QtGui.QMessageBox.Ok:
|
|
||||||
self.changeProfile()
|
self.changeProfile()
|
||||||
|
|
||||||
@QtCore.pyqtSlot(QtCore.QString)
|
@QtCore.pyqtSlot(QtCore.QString)
|
||||||
|
@ -835,9 +835,10 @@ class PesterIRC(QtCore.QObject):
|
||||||
helpers.msg(self.cli, h, "PESTERCHUM:CEASE")
|
helpers.msg(self.cli, h, "PESTERCHUM:CEASE")
|
||||||
@QtCore.pyqtSlot()
|
@QtCore.pyqtSlot()
|
||||||
def updateProfile(self):
|
def updateProfile(self):
|
||||||
handle = self.mainwindow.profile.handle
|
me = self.mainwindow.profile
|
||||||
|
handle = me.handle
|
||||||
helpers.nick(self.cli, handle)
|
helpers.nick(self.cli, handle)
|
||||||
|
helpers.msg(self.cli, "#pesterchum", "MOOD >%d" % (me.mood.value()))
|
||||||
def updateIRC(self):
|
def updateIRC(self):
|
||||||
self.conn.next()
|
self.conn.next()
|
||||||
|
|
||||||
|
@ -870,6 +871,9 @@ class PesterHandler(DefaultCommandHandler):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# private message
|
# private message
|
||||||
|
# silently ignore messages to yourself.
|
||||||
|
if handle == self.mainwindow.profile.handle:
|
||||||
|
return
|
||||||
if msg[0:7] == "COLOR >":
|
if msg[0:7] == "COLOR >":
|
||||||
colors = msg[7:].split(",")
|
colors = msg[7:].split(",")
|
||||||
try:
|
try:
|
||||||
|
|
1
profiles/spaceGhost.js
Normal file
1
profiles/spaceGhost.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"color": "#ffff00", "theme": "pesterchum", "quirks": [], "handle": "spaceGhost"}
|
Loading…
Reference in a new issue