summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/common/url.c4
-rw-r--r--src/fe-gtk/maingui.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/url.c b/src/common/url.c
index c93bc0f6..0ee09988 100644
--- a/src/common/url.c
+++ b/src/common/url.c
@@ -454,8 +454,8 @@ re_email (void)
 #define NICKDIG "0-9"
 /*	Note for NICKSPE:  \\\\ boils down to a single \ */
 #define NICKSPE	"\\[\\]\\\\`_^{|}"
-#define NICK0 "[" NICKPRE "]?[" NICKLET NICKDIG "]"
-#define NICK1 "[" NICKHYP NICKLET NICKDIG NICKSPE "]+"
+#define NICK0 "[" NICKPRE "]?[" NICKLET NICKSPE "]"
+#define NICK1 "[" NICKHYP NICKLET NICKDIG NICKSPE "]*"
 #define NICK	NICK0 NICK1
 
 static GRegex *
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index b6fdbdfa..4947b38c 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -2311,7 +2311,7 @@ mg_word_clicked (GtkWidget *xtext, char *word, GdkEventButton *even)
 		menu_nickmenu (sess, even, word + (ispunct (*word)? 1: 0), FALSE);
 		break;
 	case WORD_CHANNEL:
-		menu_chanmenu (sess, even, word + (ispunct (*word)? 1: 0));
+		menu_chanmenu (sess, even, word);
 		break;
 	case WORD_EMAIL:
 		word[end] = 0;