Commit 6e4076c2 authored by Dicson's avatar Dicson
Browse files

ClickableNicknamesPlugin. Do not add 'gc_refer_to_nick_char' after nick if...

ClickableNicknamesPlugin. Do not add 'gc_refer_to_nick_char' after nick if nick pasting not in start line
parent af23463e
...@@ -126,8 +126,10 @@ class Base(object): ...@@ -126,8 +126,10 @@ class Base(object):
self.chat_control.room_jid) self.chat_control.room_jid)
if nick not in nicks: if nick not in nicks:
return return
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()
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) message_buffer.insert_at_cursor(nick)
self.chat_control.msg_textview.grab_focus() self.chat_control.msg_textview.grab_focus()
......
[info] [info]
name: Clickable Nicknames name: Clickable Nicknames
short_name: clickable_nicknames short_name: clickable_nicknames
version: 0.2.2 version: 0.2.3
description: Clickable nicknames in the conversation textview. description: Clickable nicknames in the conversation textview.
authors: Denis Fomin <fominde@gmail.com> authors: Denis Fomin <fominde@gmail.com>
homepage: http://trac-plugins.gajim.org/wiki/ClickableNicknamesPlugin homepage: http://trac-plugins.gajim.org/wiki/ClickableNicknamesPlugin
......
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