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:
Timo Sirainen 2002-06-05 20:11:10 +00:00 committed by cras
commit 5cfaa5bb7a
5 changed files with 20 additions and 9 deletions

View file

@ -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);