summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-queries.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-06-05 20:11:10 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-06-05 20:11:10 +0000
commit5cfaa5bb7afd44dca2759977ad71349f44ac5014 (patch)
tree6c82c7222a9d077d5468b4d37a8afdad4512b46e /src/fe-common/core/fe-queries.c
parentd1e55d91b7da5d08ed0c823d8fdc785175deb8f8 (diff)
downloadirssi-5cfaa5bb7afd44dca2759977ad71349f44ac5014.zip
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
Diffstat (limited to 'src/fe-common/core/fe-queries.c')
-rw-r--r--src/fe-common/core/fe-queries.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-queries.c b/src/fe-common/core/fe-queries.c
index 93f13040..762aa034 100644
--- a/src/fe-common/core/fe-queries.c
+++ b/src/fe-common/core/fe-queries.c
@@ -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);