use stderr for errors
This commit is contained in:
parent
edfed94214
commit
943fa8ad16
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user