summaryrefslogtreecommitdiff
path: root/src/plugins/demo
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-04-11 18:36:06 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-04-11 18:36:06 +0200
commitd975629686360821c020bb7304b7af1528a877f9 (patch)
treeb021375ae20ae8dcffc9b18b86e3dc24ff538dc8 /src/plugins/demo
parent8211dd6043557f445bf664507fe6daf22a5aa694 (diff)
downloadweechat-d975629686360821c020bb7304b7af1528a877f9.zip
Improved /set command, added /unset command, new name for config files (*.conf)
Diffstat (limited to 'src/plugins/demo')
-rw-r--r--src/plugins/demo/demo.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/plugins/demo/demo.c b/src/plugins/demo/demo.c
index 36c600868..f8a4620bc 100644
--- a/src/plugins/demo/demo.c
+++ b/src/plugins/demo/demo.c
@@ -36,7 +36,7 @@ WEECHAT_PLUGIN_DESCRIPTION("Demo plugin for WeeChat");
WEECHAT_PLUGIN_AUTHOR("FlashCode <flashcode@flashtux.org>");
WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION);
WEECHAT_PLUGIN_WEECHAT_VERSION(WEECHAT_VERSION);
-WEECHAT_PLUGIN_LICENSE("GPL");
+WEECHAT_PLUGIN_LICENSE("GPL3");
struct t_weechat_plugin *weechat_demo_plugin = NULL;
#define weechat_plugin weechat_demo_plugin
@@ -91,19 +91,16 @@ demo_printf_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
weechat_printf (buffer,
_("demo message without prefix"));
weechat_printf (buffer,
- _("%sdemo message with info prefix"),
- weechat_prefix ("info"));
- weechat_printf (buffer,
_("%sdemo message with error prefix"),
weechat_prefix ("error"));
weechat_printf (buffer,
_("colors: %s buffer %s nick1 %s nick2 %s nick3 "
"%s nick4"),
- weechat_color ("color_chat_buffer"),
- weechat_color ("color_chat_nick_color1"),
- weechat_color ("color_chat_nick_color2"),
- weechat_color ("color_chat_nick_color3"),
- weechat_color ("color_chat_nick_color4"));
+ weechat_color ("chat_buffer"),
+ weechat_color ("chat_nick_color1"),
+ weechat_color ("chat_nick_color2"),
+ weechat_color ("chat_nick_color3"),
+ weechat_color ("chat_nick_color4"));
}
return WEECHAT_RC_OK;
@@ -342,8 +339,7 @@ demo_info_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
(void) argv_eol;
if (argc > 1)
- weechat_printf (NULL, "%sinfo \"%s\" = \"%s\"",
- weechat_prefix ("info"),
+ weechat_printf (NULL, "info \"%s\" = \"%s\"",
argv[1],
weechat_info_get (argv[1]));
else