infra: avoid double say logging

This commit is contained in:
Thomas Schoebel-Theuer 2017-12-11 10:17:48 +01:00 committed by Thomas Schoebel-Theuer
parent 7b54f1d341
commit 49d0d9183c
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {