mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -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:
parent
ff86916dc3
commit
c1b73039cd
@ -153,8 +153,13 @@ static void cmd_msg(gchar *data, IRC_SERVER_REC *server, WI_ITEM_REC *item)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* private message */
|
/* 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,
|
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);
|
g_free_not_null(freestr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user