Skip to content
Snippets Groups Projects
Commit 2cf0f58b authored by Dicson's avatar Dicson
Browse files

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

parent b1cbd612
No related branches found
No related tags found
No related merge requests found
...@@ -122,6 +122,10 @@ class Base(object): ...@@ -122,6 +122,10 @@ class Base(object):
if nick.startswith('* '): if nick.startswith('* '):
nick = nick.lstrip('* ').split(' ')[0] nick = nick.lstrip('* ').split(' ')[0]
nick = nick.lstrip(gajim.config.get('before_nickname')) 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') + ' ' nick = nick + gajim.config.get('gc_refer_to_nick_char') + ' '
message_buffer = self.chat_control.msg_textview.get_buffer() message_buffer = self.chat_control.msg_textview.get_buffer()
message_buffer.insert_at_cursor(nick) message_buffer.insert_at_cursor(nick)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment