summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-01-11 16:16:39 -0800
committerTingPing <tingping@tingping.se>2013-01-11 16:16:39 -0800
commitbba00f2b66a84c49f7707ba15e4bb5bfd444a164 (patch)
tree4fd511f7445faca9587693b9d8909c6496dbdf61 /src/fe-gtk
parent4a2ecc5d6c3a32b78856f2864a6dbc2ba19b1424 (diff)
parent07b69fd2f8236d05191b8ceff86db74a0509249c (diff)
Merge pull request #373 from RichardHitt/issue372
closes Issue372 -- Fix nickname-mouseover recognition
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/maingui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index 2dfb7b8d..a5ea0b66 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -2311,7 +2311,9 @@ mg_word_clicked (GtkWidget *xtext, char *word, GdkEventButton *even)
 		menu_urlmenu (even, word);
 		break;
 	case WORD_NICK:
-		menu_nickmenu (sess, even, word + (ispunct (*word)? 1: 0), FALSE);
+		word[end] = 0;
+		word += start;
+		menu_nickmenu (sess, even, word, FALSE);
 		break;
 	case WORD_CHANNEL:
 		menu_chanmenu (sess, even, word);