[acronyms] Fix is_groupchat call

This commit is contained in:
Daniel Brötzmann
2019-06-22 11:06:53 +02:00
committed by Philipp Hörist
parent 3a7ef9cd95
commit b390a463c2

View File

@@ -110,7 +110,7 @@ class AcronymsExpanderPlugin(GajimPlugin):
# Get last word and cut invoker # Get last word and cut invoker
last_word = word_start_iter.get_slice(insert_iter).strip() last_word = word_start_iter.get_slice(insert_iter).strip()
if contact.is_groupchat(): if contact.is_groupchat:
nick_list = app.contacts.get_nick_list(account, contact.jid) nick_list = app.contacts.get_nick_list(account, contact.jid)
if last_word in nick_list: if last_word in nick_list:
log.info('Groupchat participant has same nick as acronym') log.info('Groupchat participant has same nick as acronym')