mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 08:32:07 +02: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
1 changed files with 10 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue