summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/script-api.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-06-21 11:49:11 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-06-21 11:49:11 +0200
commit9d05dcf175ac6a26a1a263ea490df174f78ffc62 (patch)
tree7cba0b34e51f7a337a87a73c9752e4acf17659aa /src/plugins/scripts/script-api.c
parent2c04e9752359a603300d5c32f51a11e700f2f023 (diff)
downloadweechat-9d05dcf175ac6a26a1a263ea490df174f78ffc62.zip
Remove infobar
Diffstat (limited to 'src/plugins/scripts/script-api.c')
-rw-r--r--src/plugins/scripts/script-api.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/plugins/scripts/script-api.c b/src/plugins/scripts/script-api.c
index a00f48d66..6c2d5a743 100644
--- a/src/plugins/scripts/script-api.c
+++ b/src/plugins/scripts/script-api.c
@@ -536,31 +536,6 @@ script_api_printf_y (struct t_weechat_plugin *weechat_plugin,
}
/*
- * script_api_infobar_printf: print a message in infobar
- */
-
-void
-script_api_infobar_printf (struct t_weechat_plugin *weechat_plugin,
- struct t_plugin_script *script,
- int delay, const char *color_name,
- const char *format, ...)
-{
- va_list argptr;
- char buf[1024];
- char *buf2;
-
- va_start (argptr, format);
- vsnprintf (buf, sizeof (buf) - 1, format, argptr);
- va_end (argptr);
-
- buf2 = (script->charset && script->charset[0]) ?
- weechat_iconv_to_internal (script->charset, buf) : NULL;
- weechat_infobar_printf (delay, color_name, "%s", (buf2) ? buf2 : buf);
- if (buf2)
- free (buf2);
-}
-
-/*
* script_api_log_printf: add a message in WeeChat log file
*/