summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-irc-commands.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-12 22:57:53 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-12 22:57:53 +0000
commit18f3c74d68e79f5962000770fca9e663bf1b1c23 (patch)
treef16183cc068553da6080a481a5c83c14c97b7bd5 /src/fe-common/irc/fe-irc-commands.c
parent919abb2c6f8339e160a59b8ddcacfd403772379d (diff)
downloadirssi-18f3c74d68e79f5962000770fca9e663bf1b1c23.zip
CTCP msgs/replies stops the "event privmsg" or "event notice" signals now
so you don't have to check for them anymore (unless you use signal_add_first()..). /WINDOW MOVE command had some bugs. CTCP reply to some channel didn't display the channel name. Several code cleanups. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@327 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-irc-commands.c')
-rw-r--r--src/fe-common/irc/fe-irc-commands.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/fe-common/irc/fe-irc-commands.c b/src/fe-common/irc/fe-irc-commands.c
index 429186f5..669daf19 100644
--- a/src/fe-common/irc/fe-irc-commands.c
+++ b/src/fe-common/irc/fe-irc-commands.c
@@ -33,6 +33,7 @@
#include "channels.h"
#include "query.h"
+#include "fe-query.h"
#include "windows.h"
#include "window-items.h"
@@ -153,11 +154,7 @@ static void cmd_msg(gchar *data, IRC_SERVER_REC *server, WI_ITEM_REC *item)
else
{
/* private message */
- if (settings_get_bool("autocreate_query") && query_find(server, target) == NULL)
- item = (WI_ITEM_REC *) query_create(server, target, FALSE);
- else
- item = (WI_ITEM_REC *) query_find(server, target);
-
+ item = (WI_ITEM_REC *) privmsg_get_query(server, target);
printformat(server, target, MSGLEVEL_MSGS | MSGLEVEL_NOHILIGHT,
item == NULL ? IRCTXT_OWN_MSG_PRIVATE : IRCTXT_OWN_MSG_PRIVATE_QUERY, target, msg, server->nick);
}