1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

/WINDOW SERVER -unsticky crashed irssi if it was used when you weren't connected to server.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1939 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-29 16:15:47 +00:00 committed by cras
parent 59e310c723
commit 4f58b17ecb
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ FORMAT_REC fecommon_core_formats[] = {
{ "refnum_too_low", "Window number must be greater than 1", 0 }, { "refnum_too_low", "Window number must be greater than 1", 0 },
{ "error_server_sticky", "Window's server is sticky and it cannot be changed without -unsticky option", 0 }, { "error_server_sticky", "Window's server is sticky and it cannot be changed without -unsticky option", 0 },
{ "set_server_sticky", "Window's server set sticky", 1, { 0 } }, { "set_server_sticky", "Window's server set sticky", 1, { 0 } },
{ "unset_server_sticky", "Window's server isn't sticky anymore", 1, { 0 } }, { "unset_server_sticky", "Window's server isn't sticky anymore", 0 },
{ "window_level", "Window level is now $0", 1, { 0 } }, { "window_level", "Window level is now $0", 1, { 0 } },
{ "windowlist_header", "Ref Name Active item Server Level", 0 }, { "windowlist_header", "Ref Name Active item Server Level", 0 },
{ "windowlist_line", "$[3]0 %|$[20]1 $[15]2 $[15]3 $4", 5, { 1, 0, 0, 0, 0 } }, { "windowlist_line", "$[3]0 %|$[20]1 $[15]2 $[15]3 $4", 5, { 1, 0, 0, 0, 0 } },

View File

@ -349,7 +349,7 @@ static void cmd_window_server(const char *data)
active_win->servertag != NULL) { active_win->servertag != NULL) {
g_free_and_null(active_win->servertag); g_free_and_null(active_win->servertag);
printformat_window(active_win, MSGLEVEL_CLIENTNOTICE, printformat_window(active_win, MSGLEVEL_CLIENTNOTICE,
TXT_UNSET_SERVER_STICKY, server->tag); TXT_UNSET_SERVER_STICKY);
} }
if (active_win->servertag != NULL && if (active_win->servertag != NULL &&