From 6c7346cdbedc0dd775c028fd5a0394db05d5fd30 Mon Sep 17 00:00:00 2001 From: RichardHitt Date: Fri, 11 Jan 2013 02:38:11 -0800 Subject: Correct nick recognition in mainurl.c as well. Closes #372. --- src/fe-gtk/maingui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit 1.4.1