summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorRichardHitt <rbh00@netcom.com>2013-01-11 02:38:11 -0800
committerRichardHitt <rbh00@netcom.com>2013-01-11 02:38:11 -0800
commit6c7346cdbedc0dd775c028fd5a0394db05d5fd30 (patch)
tree5fb64b7ed5fb50e32f40355653b73624a4524e83 /src/fe-gtk
parent487ac0a011655b78de5b41bf2c8c68143f9b9bf2 (diff)
Correct nick recognition in mainurl.c as well. Closes #372.
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);