mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Finally - /^msg nick never autocreates an empty window anymore. Added new
extern int command_hide_output which can be used to check if /^ was used. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2839 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d1e55d91b7
commit
5cfaa5bb7a
5 changed files with 20 additions and 9 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#include "servers.h"
|
||||
#include "queries.h"
|
||||
|
||||
#include "fe-core-commands.h"
|
||||
#include "fe-windows.h"
|
||||
#include "window-items.h"
|
||||
#include "printtext.h"
|
||||
|
|
@ -46,7 +47,8 @@ QUERY_REC *privmsg_get_query(SERVER_REC *server, const char *nick,
|
|||
g_return_val_if_fail(nick != NULL, NULL);
|
||||
|
||||
query = query_find(server, nick);
|
||||
if (query == NULL && (querycreate_level & level) != 0 &&
|
||||
if (query == NULL && !command_hide_output &&
|
||||
(querycreate_level & level) != 0 &&
|
||||
(!own || settings_get_bool("autocreate_own_query"))) {
|
||||
query = CHAT_PROTOCOL(server)->
|
||||
query_create(server->tag, nick, TRUE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue