summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-12-19 10:17:55 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-12-19 10:17:55 +0100
commitd07a7cedc81200436a35474d454d9f0f6857123e (patch)
treebfda16a413d27cb4eedbe4b25ed65df1e41b1097 /src/plugins/irc
parentcfc12b2b8c3e17bf29c6295b6e8b312e3283398b (diff)
downloadweechat-d07a7cedc81200436a35474d454d9f0f6857123e.zip
Add sub-items in bars (items glued with "+" as separator instead of comma), add buffer_number default bar item
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-bar-item.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c
index e5b5522ed..6b4d33bb5 100644
--- a/src/plugins/irc/irc-bar-item.c
+++ b/src/plugins/irc/irc-bar-item.c
@@ -77,7 +77,7 @@ irc_bar_item_buffer_name (void *data, struct t_gui_bar_item *item,
{
char buf[512], buf_name[256], modes[128], away[128];
const char *name;
- int number, part_from_channel;
+ int part_from_channel;
struct t_gui_buffer *buffer;
struct t_irc_server *server;
struct t_irc_channel *channel;
@@ -97,8 +97,6 @@ irc_bar_item_buffer_name (void *data, struct t_gui_bar_item *item,
if (buffer)
{
- number = weechat_buffer_get_integer (buffer, "number");
-
irc_buffer_get_server_channel (buffer, &server, &channel);
if (server || channel)
{
@@ -170,10 +168,7 @@ irc_bar_item_buffer_name (void *data, struct t_gui_bar_item *item,
snprintf (buf_name, sizeof (buf_name), "%s", name);
}
- snprintf (buf, sizeof (buf), "%s%d%s:%s%s%s%s",
- IRC_COLOR_STATUS_NUMBER,
- number,
- IRC_COLOR_BAR_DELIM,
+ snprintf (buf, sizeof (buf), "%s%s%s%s",
IRC_COLOR_STATUS_NAME,
buf_name,
modes,