|
# File jabber4r/session.rb, line 463
def register_message_filter
@connection.add_filter("messageFilter") do |element|
if element.element_tag=="message" and @messageListeners.size > 0
element.consume_element
message = Jabber::Protocol::Message.from_element(self, element)
notify_message_listeners(message)
end #if message
end #do
end
|