mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
/JOIN #channel and /QUERY nick won't anymore automatically move
channel/query to active window but send a notice to user how to move it. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1325 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d4558de232
commit
f71afe835a
4 changed files with 39 additions and 5 deletions
|
|
@ -228,9 +228,22 @@ static void cmd_query(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
|
|||
if (query == NULL)
|
||||
CHAT_PROTOCOL(server)->query_create(server->tag, nick, FALSE);
|
||||
else {
|
||||
/* query already existed - set query active / move it to this
|
||||
window */
|
||||
window_item_set_active(active_win, (WI_ITEM_REC *) query);
|
||||
/* query already exists */
|
||||
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 (g_hash_table_lookup(optlist, "window") != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue