mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
Use the nick as target when printing notify messages, so they go to query windows.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1817 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6c2480b44f
commit
56331f78e0
1 changed files with 5 additions and 5 deletions
|
|
@ -194,7 +194,7 @@ static void notifylist_joined(IRC_SERVER_REC *server, const char *nick,
|
|||
{
|
||||
g_return_if_fail(nick != NULL);
|
||||
|
||||
printformat(server, NULL, MSGLEVEL_CLIENTNOTICE | MSGLEVEL_HILIGHT,
|
||||
printformat(server, nick, MSGLEVEL_CLIENTNOTICE | MSGLEVEL_HILIGHT,
|
||||
IRCTXT_NOTIFY_JOIN, nick, username, host, realname,
|
||||
server->connrec->chatnet == NULL ? "IRC" : server->connrec->chatnet);
|
||||
}
|
||||
|
|
@ -205,7 +205,7 @@ static void notifylist_left(IRC_SERVER_REC *server, const char *nick,
|
|||
{
|
||||
g_return_if_fail(nick != NULL);
|
||||
|
||||
printformat(server, NULL, MSGLEVEL_CLIENTNOTICE | MSGLEVEL_HILIGHT, IRCTXT_NOTIFY_PART,
|
||||
printformat(server, nick, MSGLEVEL_CLIENTNOTICE | MSGLEVEL_HILIGHT, IRCTXT_NOTIFY_PART,
|
||||
nick, username, host, realname,
|
||||
server->connrec->chatnet == NULL ? "IRC" : server->connrec->chatnet);
|
||||
}
|
||||
|
|
@ -217,11 +217,11 @@ static void notifylist_away(IRC_SERVER_REC *server, const char *nick,
|
|||
g_return_if_fail(nick != NULL);
|
||||
|
||||
if (awaymsg != NULL) {
|
||||
printformat(server, NULL, MSGLEVEL_CLIENTNOTICE | MSGLEVEL_HILIGHT,
|
||||
printformat(server, nick, MSGLEVEL_CLIENTNOTICE | MSGLEVEL_HILIGHT,
|
||||
IRCTXT_NOTIFY_AWAY, nick, username, host, realname, awaymsg,
|
||||
server->connrec->chatnet == NULL ? "IRC" : server->connrec->chatnet);
|
||||
} else {
|
||||
printformat(server, NULL, MSGLEVEL_CLIENTNOTICE | MSGLEVEL_HILIGHT,
|
||||
printformat(server, nick, MSGLEVEL_CLIENTNOTICE | MSGLEVEL_HILIGHT,
|
||||
IRCTXT_NOTIFY_UNAWAY, nick, username, host, realname,
|
||||
server->connrec->chatnet == NULL ? "IRC" : server->connrec->chatnet);
|
||||
}
|
||||
|
|
@ -233,7 +233,7 @@ static void notifylist_unidle(IRC_SERVER_REC *server, const char *nick,
|
|||
{
|
||||
g_return_if_fail(nick != NULL);
|
||||
|
||||
printformat(server, NULL, MSGLEVEL_CLIENTNOTICE | MSGLEVEL_HILIGHT,
|
||||
printformat(server, nick, MSGLEVEL_CLIENTNOTICE | MSGLEVEL_HILIGHT,
|
||||
IRCTXT_NOTIFY_UNIDLE, nick, username, host, realname,
|
||||
awaymsg != NULL ? awaymsg : "",
|
||||
server->connrec->chatnet == NULL ? "IRC" : server->connrec->chatnet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue