From d25bb43043504fbd50d56e470bc4ab758ab51036 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 14 Apr 2002 16:26:08 +0000 Subject: /WINDOW NAME now ignores if you're setting same name to it without complaining. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2679 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/window-commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fe-common/core/window-commands.c b/src/fe-common/core/window-commands.c index 2accad9d..8235b3ba 100644 --- a/src/fe-common/core/window-commands.c +++ b/src/fe-common/core/window-commands.c @@ -510,7 +510,8 @@ static void cmd_window_name(const char *data) { if (window_find_name(data) == NULL) window_set_name(active_win, data); - else { + else if (active_win->name == NULL || + strcmp(active_win->name, data) != 0) { printformat_window(active_win, MSGLEVEL_CLIENTERROR, TXT_WINDOW_NAME_NOT_UNIQUE, data); } -- cgit v1.2.3