diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-01 18:05:30 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-01 18:05:30 +0100 |
commit | 4e342270a186edea399c97913299b5fe509932ef (patch) | |
tree | b7d8ea806f27f8b754b2d3f26802628fbac32490 /src/plugins/demo | |
parent | 83444b9257bf9246ad3fe065b52a5146aaf1eaea (diff) | |
download | weechat-4e342270a186edea399c97913299b5fe509932ef.zip |
Add description of infos and infolists for commands /demo_info and /demo_infolist
Diffstat (limited to 'src/plugins/demo')
-rw-r--r-- | src/plugins/demo/demo.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/demo/demo.c b/src/plugins/demo/demo.c index bedb096f9..a7e82d1c2 100644 --- a/src/plugins/demo/demo.c +++ b/src/plugins/demo/demo.c @@ -301,8 +301,9 @@ demo_info_command_cb (void *data, struct t_gui_buffer *buffer, int argc, while (weechat_infolist_next (infolist)) { weechat_printf (NULL, - " %s", - weechat_infolist_string (infolist, "info_name")); + " %s: %s", + weechat_infolist_string (infolist, "info_name"), + weechat_gettext (weechat_infolist_string (infolist, "description"))); } weechat_infolist_free (infolist); } @@ -345,8 +346,9 @@ demo_infolist_command_cb (void *data, struct t_gui_buffer *buffer, int argc, while (weechat_infolist_next (infolist)) { weechat_printf (NULL, - " %s", - weechat_infolist_string (infolist, "infolist_name")); + " %s: %s", + weechat_infolist_string (infolist, "infolist_name"), + weechat_gettext (weechat_infolist_string (infolist, "description"))); } weechat_infolist_free (infolist); } |