mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
/QUERY existing_nick now switches to the window where it exists, instead of
complaining about /window item move (same fix as to /join recently). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2696 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
cb7b881d70
commit
8936da1f6d
@ -247,22 +247,12 @@ static void cmd_query(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
|
||||
query = CHAT_PROTOCOL(server)->
|
||||
query_create(server->tag, nick, FALSE);
|
||||
else {
|
||||
/* query already exists */
|
||||
/* query already exists, set it active */
|
||||
WINDOW_REC *window = window_item_window(query);
|
||||
|
||||
if (window == active_win) {
|
||||
/* query is in active window, set it active */
|
||||
window_item_set_active(active_win,
|
||||
(WI_ITEM_REC *) query);
|
||||
} else {
|
||||
/* notify user how to move the query to active
|
||||
window. this was used to be done automatically
|
||||
but it just confused everyone who did it
|
||||
accidentally */
|
||||
printformat_window(active_win, MSGLEVEL_CLIENTNOTICE,
|
||||
TXT_QUERY_MOVE_NOTIFY, query->name,
|
||||
window->refnum);
|
||||
}
|
||||
if (window != active_win)
|
||||
window_set_active(window);
|
||||
window_item_set_active(active_win, (WI_ITEM_REC *) query);
|
||||
}
|
||||
|
||||
if (g_hash_table_lookup(optlist, "window") != NULL) {
|
||||
|
@ -148,7 +148,6 @@ FORMAT_REC fecommon_core_formats[] = {
|
||||
{ "query_stop", "Closing query with {nick $0}", 1, { 0 } },
|
||||
{ "no_query", "No query with {nick $0}", 1, { 0 } },
|
||||
{ "query_server_changed", "Query with {nick $0} changed to server {server $1}", 2, { 0, 0 } },
|
||||
{ "query_move_notify", "Query with {nick $0} is already created to window $1, use \"/WINDOW ITEM MOVE $0\" to move it to this window", 2, { 0, 1 } },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "Highlighting", 0 },
|
||||
|
@ -122,7 +122,6 @@ enum {
|
||||
TXT_QUERY_STOP,
|
||||
TXT_NO_QUERY,
|
||||
TXT_QUERY_SERVER_CHANGED,
|
||||
TXT_QUERY_MOVE_NOTIFY,
|
||||
|
||||
TXT_FILL_6,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user