1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

If autocreate_query is ON, /MSG nick now creates the query.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@313 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-10 19:51:36 +00:00 committed by cras
parent ff86916dc3
commit c1b73039cd

View File

@ -153,8 +153,13 @@ 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);
printformat(server, target, MSGLEVEL_MSGS | MSGLEVEL_NOHILIGHT,
query_find(server, target) == NULL ? IRCTXT_OWN_MSG_PRIVATE : IRCTXT_OWN_MSG_PRIVATE_QUERY, target, msg, server->nick);
item == NULL ? IRCTXT_OWN_MSG_PRIVATE : IRCTXT_OWN_MSG_PRIVATE_QUERY, target, msg, server->nick);
}
g_free_not_null(freestr);