comparison src/plugins/plugin_xep_0085.py @ 662:4f747d7fde8c

core: importParams renamed to updateParams: it now updates the parameter instead of appending children if it find an existing one.
author Goffi <goffi@goffi.org>
date Thu, 31 Oct 2013 17:14:15 +0100
parents 69a8bfd266a5
children 8004c7d4aba7
comparison
equal deleted inserted replaced
661:d81f55a58c08 662:4f747d7fde8c
91 def __init__(self, host): 91 def __init__(self, host):
92 info(_("Chat State Notifications plugin initialization")) 92 info(_("Chat State Notifications plugin initialization"))
93 self.host = host 93 self.host = host
94 94
95 # parameter value is retrieved before each use 95 # parameter value is retrieved before each use
96 host.memory.importParams(self.params) 96 host.memory.updateParams(self.params)
97 97
98 # triggers from core 98 # triggers from core
99 host.trigger.add("MessageReceived", self.messageReceivedTrigger) 99 host.trigger.add("MessageReceived", self.messageReceivedTrigger)
100 host.trigger.add("sendMessageXml", self.sendMessageXmlTrigger) 100 host.trigger.add("sendMessageXml", self.sendMessageXmlTrigger)
101 host.trigger.add("paramUpdateTrigger", self.paramUpdateTrigger) 101 host.trigger.add("paramUpdateTrigger", self.paramUpdateTrigger)