diff --git a/weechat-plugins/essai/src/essai-command.c b/weechat-plugins/essai/src/essai-command.c index 1fd1532..1d1bf69 100644 --- a/weechat-plugins/essai/src/essai-command.c +++ b/weechat-plugins/essai/src/essai-command.c @@ -3,41 +3,80 @@ #include "essai.h" #include "essai-command.h" +int essai_args_command(struct t_gui_buffer *buffer, + int argc, + char **argv, + char **argv_eol){ + weechat_printf(buffer, + "Nombre d’arguments : %s%d%s", + weechat_color("blue"), + argc, + weechat_color("reset")); + + for(int i=0; i diff --git a/weechat-plugins/essai/src/essai.h b/weechat-plugins/essai/src/essai.h index 9a1fc0c..0b8bb7d 100644 --- a/weechat-plugins/essai/src/essai.h +++ b/weechat-plugins/essai/src/essai.h @@ -6,7 +6,7 @@ #define ESSAI_PLUGIN_NAME "essai" #define ESSAI_PLUGIN_DESCRIPTION "Plugin just to test the library :-/" #define ESSAI_PLUGIN_AUTHOR "Alnotz" -#define ESSAI_PLUGIN_VERSION "0.1.0" +#define ESSAI_PLUGIN_VERSION "0.2.0" #define ESSAI_PLUGIN_LICENCE "GPL-3.0-or-later" #define ESSAI_PLUGIN_PRIORITY 999