ClickableNicknamesPlugin. Do not add 'gc_refer_to_nick_char' after nick if nick pasting not in start line

This commit is contained in:
Denis Fomin
2013-02-17 01:26:33 +04:00
parent af23463e1d
commit 6e4076c295
2 changed files with 4 additions and 2 deletions

View File

@@ -126,8 +126,10 @@ class Base(object):
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()
if message_buffer.get_char_count() < 2:
nick = nick + gajim.config.get('gc_refer_to_nick_char')
nick = nick + ' '
message_buffer.insert_at_cursor(nick)
self.chat_control.msg_textview.grab_focus()

View File

@@ -1,7 +1,7 @@
[info]
name: Clickable Nicknames
short_name: clickable_nicknames
version: 0.2.2
version: 0.2.3
description: Clickable nicknames in the conversation textview.
authors: Denis Fomin <fominde@gmail.com>
homepage: http://trac-plugins.gajim.org/wiki/ClickableNicknamesPlugin