diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-02-17 14:59:07 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-02-17 14:59:07 +0000 |
commit | ae0e17cfe252e96082d88710dd35aa5e0782b91c (patch) | |
tree | 7e2e183f7133b84cc766e978efa0511527c2cda1 /src | |
parent | d69c634d2f114ee8668cd6afa46b0a362f7dc327 (diff) | |
download | weechat-ae0e17cfe252e96082d88710dd35aa5e0782b91c.zip |
Commands allowed when not connected to any server, fixed get_config: now needs exact option name to return value
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/plugins-interface.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/plugins-interface.c b/src/plugins/plugins-interface.c index bd8cdd087..bd7470eb2 100644 --- a/src/plugins/plugins-interface.c +++ b/src/plugins/plugins-interface.c @@ -330,11 +330,7 @@ weechat_plugin_exec_command (t_weechat_plugin *plugin, else if (ptr_server && (ptr_server->buffer)) user_command (ptr_server, NULL, command); else - { - irc_display_prefix (NULL, NULL, PREFIX_ERROR); - gui_printf (NULL, _("%s server not found for plugin exec command\n"), - WEECHAT_ERROR); - } + user_command (NULL, NULL, command); } } @@ -566,7 +562,7 @@ weechat_plugin_get_config (t_weechat_plugin *plugin, char *option) { if ((!option) || ((option) && (option[0]) - && (strstr (weechat_options[i][j].option_name, option) != NULL))) + && (ascii_strcasecmp (weechat_options[i][j].option_name, option) == 0))) { return weechat_plugin_get_config_str_value (&weechat_options[i][j], NULL); } @@ -583,7 +579,7 @@ weechat_plugin_get_config (t_weechat_plugin *plugin, char *option) weechat_options[CONFIG_SECTION_SERVER][i].option_name); if ((!option) || ((option) && (option[0]) - && (strstr (option_name, option) != NULL))) + && (ascii_strcasecmp (option_name, option) == 0))) { ptr_option_value = config_get_server_option_ptr (ptr_server, weechat_options[CONFIG_SECTION_SERVER][i].option_name); |