diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-30 19:54:34 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-30 19:54:34 +0000 |
commit | 39282a342f7f333ee24c5bad8fa5f48d8ebf3dbb (patch) | |
tree | 622e3a8c425b648d754a655f3546b88facbfd6aa /src/fe-text/statusbar-items.c | |
parent | 58397c1ca91c31c785971c874c7d124e9d1aa29b (diff) | |
download | irssi-39282a342f7f333ee24c5bad8fa5f48d8ebf3dbb.zip |
If joined channel had some low-ascii (color codes), they were displayed
wrong in statusbar and prompt. Also, if you're invited to some channel,
print the lowascii so that you can see them (^B, etc.)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@400 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/statusbar-items.c')
-rw-r--r-- | src/fe-text/statusbar-items.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c index 4705cc64..57cbd1a9 100644 --- a/src/fe-text/statusbar-items.c +++ b/src/fe-text/statusbar-items.c @@ -37,6 +37,7 @@ #include "printtext.h" #include "statusbar.h" #include "gui-windows.h" +#include "gui-printtext.h" /* how often to redraw lagging time (seconds) */ #define LAG_REFRESH_TIME 10 @@ -215,7 +216,7 @@ static void statusbar_channel(SBAR_ITEM_REC *item, int ypos) WI_ITEM_REC *witem; CHANNEL_REC *channel; SERVER_REC *server; - gchar channame[21], winnum[MAX_INT_STRLEN], *mode; + gchar channame[21], winnum[MAX_INT_STRLEN], *mode, *tmpname; int size_needed; int mode_size; @@ -239,7 +240,9 @@ static void statusbar_channel(SBAR_ITEM_REC *item, int ypos) else { /* display channel + mode */ - strncpy(channame, witem->name, 20); channame[20] = '\0'; + tmpname = show_lowascii(witem->name); + strncpy(channame, tmpname, 20); channame[20] = '\0'; + g_free(tmpname); channel = irc_item_channel(witem); if (channel == NULL) { |