summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-04-14 16:26:08 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-04-14 16:26:08 +0000
commitd25bb43043504fbd50d56e470bc4ab758ab51036 (patch)
treef85f32a72eb821444af3e005fc29f1675cf642d7
parent24c83dcfc41cc4eb238a0e642ee79c6dcaded226 (diff)
downloadirssi-d25bb43043504fbd50d56e470bc4ab758ab51036.zip
/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
-rw-r--r--src/fe-common/core/window-commands.c3
1 files changed, 2 insertions, 1 deletions
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);
}