Notify user when channel blocks a message
This commit is contained in:
parent
28b0a5d2da
commit
931d6da5b4
3 changed files with 10 additions and 2 deletions
|
@ -36,6 +36,7 @@ CHANGELOG
|
|||
* CTCP Version reply - Kiooeht [evacipatedBox]
|
||||
* Check for Pesterchum updates - Kiooeht [evacipatedBox]
|
||||
* Memo OP options: Secret, Invite-only, Mute - Kiooeht [evacipatedBox]
|
||||
* Notify user if channel blocks message - Kiooeht [evacipatedBox]
|
||||
* Bug fixes
|
||||
* Logviewer updates - Kiooeht [evacipatedBox]
|
||||
* Memo scrollbar thing - Kiooeht [evacipatedBox]
|
||||
|
|
3
irc.py
3
irc.py
|
@ -248,6 +248,7 @@ class PesterIRC(QtCore.QThread):
|
|||
connected = QtCore.pyqtSignal()
|
||||
userPresentUpdate = QtCore.pyqtSignal(QtCore.QString, QtCore.QString,
|
||||
QtCore.QString)
|
||||
cannotSendToChan = QtCore.pyqtSignal(QtCore.QString, QtCore.QString)
|
||||
|
||||
class PesterHandler(DefaultCommandHandler):
|
||||
def notice(self, nick, chan, msg):
|
||||
|
@ -422,6 +423,8 @@ class PesterHandler(DefaultCommandHandler):
|
|||
self.parent.chanInviteOnly.emit(channel)
|
||||
def channelmodeis(self, server, handle, channel, modes):
|
||||
self.parent.modesUpdated.emit(channel, modes)
|
||||
def cannotsendtochan(self, server, handle, channel, msg):
|
||||
self.parent.cannotSendToChan.emit(channel, msg)
|
||||
|
||||
def getMood(self, *chums):
|
||||
chumglub = "GETMOOD "
|
||||
|
|
|
@ -2060,8 +2060,10 @@ class PesterWindow(MovingWindow):
|
|||
self.newMemo(unicode(channel), "+0:00")
|
||||
@QtCore.pyqtSlot(QtCore.QString)
|
||||
def chanInviteOnly(self, channel):
|
||||
print "Invite only: %s" % channel
|
||||
self.inviteOnlyChan.emit(channel)
|
||||
@QtCore.pyqtSlot(QtCore.QString, QtCore.QString)
|
||||
def cannotSendToChan(self, channel, msg):
|
||||
self.deliverMemo(channel, "ChanServ", msg)
|
||||
@QtCore.pyqtSlot(QtCore.QString, QtCore.QString, QtCore.QString)
|
||||
def timeCommand(self, chan, handle, command):
|
||||
(c, h, cmd) = (unicode(chan), unicode(handle), unicode(command))
|
||||
|
@ -2907,7 +2909,9 @@ class MainProgram(QtCore.QObject):
|
|||
('chanInviteOnly(QString)',
|
||||
'chanInviteOnly(QString)'),
|
||||
('modesUpdated(QString, QString)',
|
||||
'modesUpdated(QString, QString)')
|
||||
'modesUpdated(QString, QString)'),
|
||||
('cannotSendToChan(QString, QString)',
|
||||
'cannotSendToChan(QString, QString)')
|
||||
]
|
||||
def connectWidgets(self, irc, widget):
|
||||
self.connect(irc, QtCore.SIGNAL('finished()'),
|
||||
|
|
Loading…
Reference in a new issue