core: renamed "MessageReceived" trigger to "messageReceived" for consistency.
This commit is contained in:
parent
8fa4cd0f86
commit
3b64263f3b
1 changed files with 24 additions and 24 deletions
|
|
@ -313,7 +313,7 @@ class OTR(object):
|
|||
) # FIXME: OTR should not be skipped per profile, this need to be refactored
|
||||
self._p_hints = host.plugins["XEP-0334"]
|
||||
self._p_carbons = host.plugins["XEP-0280"]
|
||||
host.trigger.add("MessageReceived", self.MessageReceivedTrigger, priority=100000)
|
||||
host.trigger.add("messageReceived", self.messageReceivedTrigger, priority=100000)
|
||||
host.trigger.add("sendMessage", self.sendMessageTrigger, priority=100000)
|
||||
host.trigger.add("sendMessageData", self._sendMessageDataTrigger)
|
||||
host.bridge.addMethod(
|
||||
|
|
@ -730,7 +730,7 @@ class OTR(object):
|
|||
data["history"] = C.HISTORY_SKIP
|
||||
return data
|
||||
|
||||
def MessageReceivedTrigger(self, client, message_elt, post_treat):
|
||||
def messageReceivedTrigger(self, client, message_elt, post_treat):
|
||||
if message_elt.getAttribute("type") == C.MESS_TYPE_GROUPCHAT:
|
||||
# OTR is not possible in group chats
|
||||
return True
|
||||
|
|
|
|||
Loading…
Reference in a new issue