Have the arrow bold to highlight your own words in remote clients.
This commit is contained in:
parent
8b8024b81e
commit
3eab14cfb9
13
src/log.c
13
src/log.c
@ -29,6 +29,11 @@ static int _log_write(log_t *logdata, logfilegroup_t *lf, char *d, char *str);
|
|||||||
void logfile_free(logfile_t *lf);
|
void logfile_free(logfile_t *lf);
|
||||||
static char *_log_wrap(char *dest, char *line);
|
static char *_log_wrap(char *dest, char *line);
|
||||||
|
|
||||||
|
#define BOLD_CHAR 0x02
|
||||||
|
#define LAMESTRING "!bip@bip.bip.bip PRIVMSG "
|
||||||
|
#define PMSG_ARROW " \002->\002 "
|
||||||
|
|
||||||
|
|
||||||
/* TODO: change fatal("out of memory") to cleanup & return NULL */
|
/* TODO: change fatal("out of memory") to cleanup & return NULL */
|
||||||
|
|
||||||
int check_dir(char *filename, int is_fatal)
|
int check_dir(char *filename, int is_fatal)
|
||||||
@ -723,8 +728,6 @@ int log_has_backlog(log_t *logdata, char *destination)
|
|||||||
return lf->backlog_offset != lf->len;
|
return lf->backlog_offset != lf->len;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define BOLD_CHAR 0x02
|
|
||||||
#define LAMESTRING "!bip@bip.bip.bip PRIVMSG "
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* chan:
|
* chan:
|
||||||
@ -852,7 +855,7 @@ char *log_beautify(log_t *logdata, char *buf, char *dest)
|
|||||||
|
|
||||||
p = ret = (char *)malloc(
|
p = ret = (char *)malloc(
|
||||||
1 + lon + strlen(LAMESTRING) + lod + 2 + lots + 2 + lom + 3
|
1 + lon + strlen(LAMESTRING) + lod + 2 + lots + 2 + lom + 3
|
||||||
+ action * (2 + strlen("ACTION ")) + out * strlen(" -> "));
|
+ action * (2 + strlen("ACTION ")) + out * strlen(PMSG_ARROW));
|
||||||
if (!p)
|
if (!p)
|
||||||
fatal("out of memory");
|
fatal("out of memory");
|
||||||
|
|
||||||
@ -876,8 +879,8 @@ char *log_beautify(log_t *logdata, char *buf, char *dest)
|
|||||||
p += strlen("ACTION ");
|
p += strlen("ACTION ");
|
||||||
}
|
}
|
||||||
if (out) {
|
if (out) {
|
||||||
strcpy(p, " -> ");
|
strcpy(p, PMSG_ARROW);
|
||||||
p += strlen(" -> ");
|
p += strlen(PMSG_ARROW);
|
||||||
}
|
}
|
||||||
if (logdata->user->backlog_no_timestamp == 0) {
|
if (logdata->user->backlog_no_timestamp == 0) {
|
||||||
memcpy(p, sots, lots);
|
memcpy(p, sots, lots);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user