mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Add server tag as well to topicbar with queries
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2638 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6cf0579cea
commit
8d2a14b476
@ -431,8 +431,16 @@ static char *expando_sysarch(SERVER_REC *server, void *item, int *free_ret)
|
||||
/* Topic of active channel (or address of queried nick) */
|
||||
static char *expando_topic(SERVER_REC *server, void *item, int *free_ret)
|
||||
{
|
||||
return IS_CHANNEL(item) ? CHANNEL(item)->topic :
|
||||
IS_QUERY(item) ? QUERY(item)->address : "";
|
||||
if (IS_CHANNEL(item))
|
||||
return CHANNEL(item)->topic;
|
||||
if (IS_QUERY(item)) {
|
||||
QUERY_REC *query = QUERY(item);
|
||||
|
||||
*free_ret = TRUE;
|
||||
return g_strdup_printf("%s (%s)", query->address,
|
||||
query->server_tag);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
/* Server tag */
|
||||
|
Loading…
Reference in New Issue
Block a user