From 943fa8ad1602da4b84eed07672b683f3009d5af8 Mon Sep 17 00:00:00 2001 From: anon Date: Wed, 2 Aug 2023 15:08:24 +0200 Subject: [PATCH] use stderr for errors --- src/bot/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot/main.c b/src/bot/main.c index 9b4b8d8..5efd3a0 100644 --- a/src/bot/main.c +++ b/src/bot/main.c @@ -83,14 +83,14 @@ init() session = irc_create_session(&callbacks); if (!session) { - printf("Error creating IRC session\n"); + fputs("Error creating IRC session\n", stderr); return 1; } irc_connect(session, SERVER, PORT, 0, USERNAME, USERNAME, USERNAME); if (irc_run(session) != 0) { - printf("Error running IRC session\nNo net?"); + fputs("Error running IRC session\nNo net?", stderr); return 1; }