mirror of https://github.com/schoebel/mars
infra: avoid double say logging
This commit is contained in:
parent
7b54f1d341
commit
49d0d9183c
|
@ -528,7 +528,7 @@ void say_to(struct say_channel *ch, int class, const char *fmt, ...)
|
|||
ch = find_channel(current);
|
||||
}
|
||||
|
||||
if (likely(ch)) {
|
||||
if (ch && ch != default_channel) {
|
||||
if (!ch->ch_is_dir)
|
||||
class = SAY_TOTAL;
|
||||
if (likely(class >= 0 && class < MAX_SAY_CLASS)) {
|
||||
|
|
Loading…
Reference in New Issue