use stderr for errors

This commit is contained in:
anon 2023-08-02 15:08:24 +02:00
parent edfed94214
commit 943fa8ad16

View File

@ -83,14 +83,14 @@ init()
session = irc_create_session(&callbacks); session = irc_create_session(&callbacks);
if (!session) { if (!session) {
printf("Error creating IRC session\n"); fputs("Error creating IRC session\n", stderr);
return 1; return 1;
} }
irc_connect(session, SERVER, PORT, 0, USERNAME, USERNAME, USERNAME); irc_connect(session, SERVER, PORT, 0, USERNAME, USERNAME, USERNAME);
if (irc_run(session) != 0) { if (irc_run(session) != 0) {
printf("Error running IRC session\nNo net?"); fputs("Error running IRC session\nNo net?", stderr);
return 1; return 1;
} }