mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
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
This commit is contained in:
parent
58397c1ca9
commit
39282a342f
6 changed files with 40 additions and 14 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue