mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04: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) */
|
/* Topic of active channel (or address of queried nick) */
|
||||||
static char *expando_topic(SERVER_REC *server, void *item, int *free_ret)
|
static char *expando_topic(SERVER_REC *server, void *item, int *free_ret)
|
||||||
{
|
{
|
||||||
return IS_CHANNEL(item) ? CHANNEL(item)->topic :
|
if (IS_CHANNEL(item))
|
||||||
IS_QUERY(item) ? QUERY(item)->address : "";
|
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 */
|
/* Server tag */
|
||||||
|
Loading…
Reference in New Issue
Block a user