summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-04-27 08:05:51 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-04-27 08:05:51 +0000
commit9471d16ba3680e0fc70b06796713c2d4fde767ee (patch)
treebdb370def2f3f4ff9d21e3e3e568749b2e7b6fd4 /src
parent79dbc156b6544d3c5d942bd8f30e9acb2974cad9 (diff)
downloadirssi-9471d16ba3680e0fc70b06796713c2d4fde767ee.zip
Query: sending msg displayed msg[nick] instead of the plain <nick>
Nick's address didn't show up in topic bar git-svn-id: http://svn.irssi.org/repos/irssi/trunk@180 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/irc/fe-irc-commands.c2
-rw-r--r--src/fe-text/gui-statusbar-items.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-irc-commands.c b/src/fe-common/irc/fe-irc-commands.c
index bdaa1376..4e57aa45 100644
--- a/src/fe-common/irc/fe-irc-commands.c
+++ b/src/fe-common/irc/fe-irc-commands.c
@@ -215,7 +215,7 @@ static void cmd_msg(gchar *data, IRC_SERVER_REC *server, WI_ITEM_REC *item)
{
/* private message */
printformat(server, target, MSGLEVEL_MSGS | MSGLEVEL_NOHILIGHT,
- channel == NULL ? IRCTXT_OWN_MSG_PRIVATE : IRCTXT_OWN_MSG_PRIVATE_QUERY, target, msg, server->nick);
+ query_find(server, target) == NULL ? IRCTXT_OWN_MSG_PRIVATE : IRCTXT_OWN_MSG_PRIVATE_QUERY, target, msg, server->nick);
}
g_free_not_null(freestr);
diff --git a/src/fe-text/gui-statusbar-items.c b/src/fe-text/gui-statusbar-items.c
index 1bb1c6f0..1cb3740e 100644
--- a/src/fe-text/gui-statusbar-items.c
+++ b/src/fe-text/gui-statusbar-items.c
@@ -579,12 +579,14 @@ static void read_settings(void)
signal_add("window changed", (SIGNAL_FUNC) sig_statusbar_topic_redraw);
signal_add("window item changed", (SIGNAL_FUNC) sig_statusbar_topic_redraw);
signal_add("channel topic changed", (SIGNAL_FUNC) sig_statusbar_topic_redraw);
+ signal_add("query address changed", (SIGNAL_FUNC) sig_statusbar_topic_redraw);
} else if (topic_tag != -1 && !settings_get_bool("toggle_show_topicbar")) {
gui_statusbar_delete(TRUE, 0);
topic_tag = -1;
signal_remove("window changed", (SIGNAL_FUNC) sig_statusbar_topic_redraw);
signal_remove("window item changed", (SIGNAL_FUNC) sig_statusbar_topic_redraw);
signal_remove("channel topic changed", (SIGNAL_FUNC) sig_statusbar_topic_redraw);
+ signal_remove("query address changed", (SIGNAL_FUNC) sig_statusbar_topic_redraw);
}
lag_min_show = settings_get_int("lag_min_show")*10;