irc: replace calls to config_search_with_string with weechat_config_get
This commit is contained in:
parent
b869a145ac
commit
32b8f34567
@ -3830,10 +3830,8 @@ IRC_PROTOCOL_CALLBACK(366)
|
||||
if (strcmp (weechat_infolist_string (infolist, "type"),
|
||||
"nick") == 0)
|
||||
{
|
||||
weechat_config_search_with_string (weechat_infolist_string (infolist,
|
||||
"prefix_color"),
|
||||
NULL, NULL, &ptr_option,
|
||||
NULL);
|
||||
ptr_option = weechat_config_get (weechat_infolist_string (infolist,
|
||||
"prefix_color"));
|
||||
length +=
|
||||
((ptr_option) ? strlen (weechat_color (weechat_config_string (ptr_option))) : 0) +
|
||||
strlen (weechat_infolist_string (infolist, "prefix")) +
|
||||
@ -3867,10 +3865,8 @@ IRC_PROTOCOL_CALLBACK(366)
|
||||
"prefix_color");
|
||||
if (strchr (prefix_color, '.'))
|
||||
{
|
||||
weechat_config_search_with_string (weechat_infolist_string (infolist,
|
||||
"prefix_color"),
|
||||
NULL, NULL, &ptr_option,
|
||||
NULL);
|
||||
ptr_option = weechat_config_get (weechat_infolist_string (infolist,
|
||||
"prefix_color"));
|
||||
if (ptr_option)
|
||||
strcat (string, weechat_color (weechat_config_string (ptr_option)));
|
||||
}
|
||||
|
@ -1417,10 +1417,8 @@ irc_server_rename (struct t_irc_server *server, const char *new_server_name)
|
||||
{
|
||||
while (weechat_infolist_next (infolist))
|
||||
{
|
||||
weechat_config_search_with_string (weechat_infolist_string (infolist,
|
||||
"full_name"),
|
||||
NULL, NULL, &ptr_option,
|
||||
NULL);
|
||||
ptr_option = weechat_config_get (weechat_infolist_string (infolist,
|
||||
"full_name"));
|
||||
if (ptr_option)
|
||||
{
|
||||
option_name = weechat_infolist_string (infolist, "option_name");
|
||||
|
Loading…
x
Reference in New Issue
Block a user