1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00

Disable auto-connect for plugins with command line option ("-a")

This commit is contained in:
Sebastien Helleu
2008-05-13 14:27:33 +02:00
parent a804fb1936
commit 673e4ad3be
9 changed files with 47 additions and 38 deletions
+6 -1
View File
@@ -439,7 +439,7 @@ plugin_api_info_get (struct t_weechat_plugin *plugin, char *info)
}
else if (string_strcasecmp (info, "charset_terminal") == 0)
{
return local_charset;
return weechat_local_charset;
}
else if (string_strcasecmp (info, "charset_internal") == 0)
{
@@ -459,6 +459,11 @@ plugin_api_info_get (struct t_weechat_plugin *plugin, char *info)
snprintf (value, sizeof (value), "%d", gui_filters_enabled);
return value;
}
else if (string_strcasecmp (info, "auto_connect") == 0)
{
snprintf (value, sizeof (value), "%d", weechat_auto_connect);
return value;
}
/* info not found */
return NULL;