806 |
if (CHANNEL(buffer)->topic) |
if (CHANNEL(buffer)->topic) |
807 |
{ |
{ |
808 |
buf = (char *)gui_color_decode ((unsigned char *)(CHANNEL(buffer)->topic), 0); |
buf = (char *)gui_color_decode ((unsigned char *)(CHANNEL(buffer)->topic), 0); |
809 |
buf2 = weechat_convert_encoding ((local_utf8) ? |
buf2 = channel_iconv_decode (SERVER(buffer), |
810 |
cfg_look_charset_decode_iso : cfg_look_charset_decode_utf, |
CHANNEL(buffer), |
811 |
(cfg_look_charset_internal && cfg_look_charset_internal[0]) ? |
(buf) ? buf : CHANNEL(buffer)->topic); |
|
cfg_look_charset_internal : local_charset, |
|
|
(buf) ? buf : CHANNEL(buffer)->topic); |
|
812 |
mvwprintw (ptr_win->win_title, 0, 0, format, (buf2) ? buf2 : CHANNEL(buffer)->topic); |
mvwprintw (ptr_win->win_title, 0, 0, format, (buf2) ? buf2 : CHANNEL(buffer)->topic); |
813 |
if (buf) |
if (buf) |
814 |
free (buf); |
free (buf); |
1517 |
mvwprintw (ptr_win->win_chat, i, 0, "%s %-16s ", |
mvwprintw (ptr_win->win_chat, i, 0, "%s %-16s ", |
1518 |
(ptr_dcc == dcc_selected) ? "***" : " ", |
(ptr_dcc == dcc_selected) ? "***" : " ", |
1519 |
ptr_dcc->nick); |
ptr_dcc->nick); |
1520 |
buf = weechat_convert_encoding ((local_utf8) ? |
buf = channel_iconv_decode (SERVER(buffer), |
1521 |
cfg_look_charset_decode_iso : cfg_look_charset_decode_utf, |
CHANNEL(buffer), |
1522 |
(cfg_look_charset_internal && cfg_look_charset_internal[0]) ? |
(DCC_IS_CHAT(ptr_dcc->type)) ? |
1523 |
cfg_look_charset_internal : local_charset, |
_(ptr_dcc->filename) : ptr_dcc->filename); |
|
(DCC_IS_CHAT(ptr_dcc->type)) ? |
|
|
_(ptr_dcc->filename) : ptr_dcc->filename); |
|
1524 |
wprintw (ptr_win->win_chat, "%s", buf); |
wprintw (ptr_win->win_chat, "%s", buf); |
1525 |
free (buf); |
free (buf); |
1526 |
if (DCC_IS_FILE(ptr_dcc->type)) |
if (DCC_IS_FILE(ptr_dcc->type)) |
1539 |
(DCC_IS_RECV(ptr_dcc->type)) ? "-->>" : "<<--"); |
(DCC_IS_RECV(ptr_dcc->type)) ? "-->>" : "<<--"); |
1540 |
gui_window_set_weechat_color (ptr_win->win_chat, |
gui_window_set_weechat_color (ptr_win->win_chat, |
1541 |
COLOR_DCC_WAITING + ptr_dcc->status); |
COLOR_DCC_WAITING + ptr_dcc->status); |
1542 |
buf = weechat_convert_encoding ((local_utf8) ? |
buf = channel_iconv_decode (SERVER(buffer), |
1543 |
cfg_look_charset_decode_iso : cfg_look_charset_decode_utf, |
CHANNEL(buffer), |
1544 |
(cfg_look_charset_internal && cfg_look_charset_internal[0]) ? |
_(dcc_status_string[ptr_dcc->status])); |
|
cfg_look_charset_internal : local_charset, |
|
|
_(dcc_status_string[ptr_dcc->status])); |
|
1545 |
wprintw (ptr_win->win_chat, "%-10s", buf); |
wprintw (ptr_win->win_chat, "%-10s", buf); |
1546 |
free (buf); |
free (buf); |
1547 |
|
|
1598 |
ptr_dcc->eta % 60); |
ptr_dcc->eta % 60); |
1599 |
} |
} |
1600 |
sprintf (format, "%s %%s/s)", unit_format[num_unit]); |
sprintf (format, "%s %%s/s)", unit_format[num_unit]); |
1601 |
buf = weechat_convert_encoding ((local_utf8) ? |
buf = channel_iconv_decode (SERVER(buffer), |
1602 |
cfg_look_charset_decode_iso : cfg_look_charset_decode_utf, |
CHANNEL(buffer), |
1603 |
(cfg_look_charset_internal && cfg_look_charset_internal[0]) ? |
unit_name[num_unit]); |
|
cfg_look_charset_internal : local_charset, |
|
|
unit_name[num_unit]); |
|
1604 |
wprintw (ptr_win->win_chat, format, |
wprintw (ptr_win->win_chat, format, |
1605 |
((long double) ptr_dcc->bytes_per_sec) / ((long double)(unit_divide[num_unit])), |
((long double) ptr_dcc->bytes_per_sec) / ((long double)(unit_divide[num_unit])), |
1606 |
buf); |
buf); |