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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user