derp
This commit is contained in:
parent
6d95366178
commit
3a3a0abafc
3 changed files with 11 additions and 1 deletions
3
irc.py
3
irc.py
|
@ -220,6 +220,7 @@ class PesterIRC(QtCore.QThread):
|
|||
namesReceived = QtCore.pyqtSignal(QtCore.QString, PesterList)
|
||||
channelListReceived = QtCore.pyqtSignal(PesterList)
|
||||
nickCollision = QtCore.pyqtSignal(QtCore.QString, QtCore.QString)
|
||||
myHandleChanged = QtCore.pyqtSignal(QtCore.QString)
|
||||
connected = QtCore.pyqtSignal()
|
||||
userPresentUpdate = QtCore.pyqtSignal(QtCore.QString, QtCore.QString,
|
||||
QtCore.QString)
|
||||
|
@ -309,6 +310,8 @@ class PesterHandler(DefaultCommandHandler):
|
|||
self.parent.userPresentUpdate.emit(handle, channel, mode)
|
||||
def nick(self, oldnick, newnick):
|
||||
oldhandle = oldnick[0:oldnick.find("!")]
|
||||
if oldhandle == self.mainwindow.profile().handle:
|
||||
self.parent.myHandleChanged.emit(newnick)
|
||||
newchum = PesterProfile(newnick, chumdb=self.mainwindow.chumdb)
|
||||
self.parent.moodUpdated.emit(oldhandle, Mood("offline"))
|
||||
self.parent.userPresentUpdate.emit("%s:%s" % (oldhandle, newnick), "", "nick")
|
||||
|
|
|
@ -1771,7 +1771,12 @@ class PesterWindow(MovingWindow):
|
|||
if not self.chooseprofile:
|
||||
h = unicode(handle)
|
||||
self.changeProfile(collision=h)
|
||||
|
||||
@QtCore.pyqtSlot(QtCore.QString)
|
||||
def myHandleChanged(self, handle):
|
||||
if self.profile().handle == handle:
|
||||
return
|
||||
else:
|
||||
self.nickCollision(self.profile().handle, handle)
|
||||
@QtCore.pyqtSlot()
|
||||
def pickTheme(self):
|
||||
self.themePicker()
|
||||
|
@ -1924,6 +1929,8 @@ class MainProgram(QtCore.QObject):
|
|||
'deliverMemo(QString, QString, QString)'),
|
||||
('nickCollision(QString, QString)',
|
||||
'nickCollision(QString, QString)'),
|
||||
('myHandleChanged(QString)',
|
||||
'myHandleChanged(QString)'),
|
||||
('namesReceived(QString, PyQt_PyObject)',
|
||||
'updateNames(QString, PyQt_PyObject)'),
|
||||
('userPresentUpdate(QString, QString, QString)',
|
||||
|
|
BIN
themes/enamel/op.png
Normal file
BIN
themes/enamel/op.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 346 B |
Loading…
Reference in a new issue