Commit 2cf0f58b authored by Dicson's avatar Dicson

clickable nicknames. Do not put clicked nickname if the contact is offline. Fixes #9

parent b1cbd612
......@@ -122,6 +122,10 @@ class Base(object):
if nick.startswith('* '):
nick = nick.lstrip('* ').split(' ')[0]
nick = nick.lstrip(gajim.config.get('before_nickname'))
nicks = gajim.contacts.get_nick_list(self.chat_control.account,
self.chat_control.room_jid)
if nick not in nicks:
return
nick = nick + gajim.config.get('gc_refer_to_nick_char') + ' '
message_buffer = self.chat_control.msg_textview.get_buffer()
message_buffer.insert_at_cursor(nick)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment