From 77d5a79c73664532635155b587c444cbb95f6c0c Mon Sep 17 00:00:00 2001 From: Emil Date: Wed, 2 Aug 2023 07:29:45 -0600 Subject: [PATCH] Updated ERR function --- dc | Bin 0 -> 16808 bytes src/main.c | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100755 dc diff --git a/dc b/dc new file mode 100755 index 0000000000000000000000000000000000000000..7595fd2af5cc66f283bf151e481089e573a0470f GIT binary patch literal 16808 zcmeHOeQ;FO6~DU>K?OFTC?LWsYKJIU0tyolWFag(IzcHyi>>sz*?mdYW_Q!ww~#Ps zV`Ch*nM`RrT1IKdTC3RpQR}o0Qq)i^L90x#oeo-^W*n`X(Q5ptgNkf_=iYlZZ=cyt z+dn#;&fcAU=bqpBxaXet?%Q|w-TTdO<2t|3C%B9g*9hXOrz#|*1^H#V0umDSVls|% z#T;=K`0)}`@{l5ss&dj_N+)W394Oh%pvo9@wt@vyj*uwXl`HelRuZP7TJdC8MODpv zX;=z{V9N4hdj=V!81h)8D|G*uy6q@8{k2NJe`P5>pzZeS{<9syWH+eo2DKg25ef)} zDd&@NLf?Ar&r1!+s2K7ngx7AHw)4`pTAwMkLFM|_o!EcU-X?9g&ya3}mu^w8V9M=% z5q6Z9f3@&w-mKdzcOF9eJTTSi6${(qO-rv@*cPj8izl-kwH@_KYnNUX%%p;gWe5}( zwLzE7`fIlef0yVdjP0p@KE9Mzl0Ud(d1LUJ+g_Qx^sy7e^*yy0yz^)S`yd`|rDra6e(^;d{b9o>=x?FAo!vm6Y#;BVBKK0KiyyZyB80H}LhAI{=L3 z=MQD@=gQz;DT61<;OolZ7Xvr&^_I;5#)|WYW$?~2_}()3D`oHnzzux8)J4V`pr3INaTkso8mkMZG`A0KM! z!%?7GMGF&9qv0WO0s{9Fb>Pr7j3q?8W1aQF4i*ALyF=sr;_Ayu0IqPr@Ai7s6K z6iB?ze+gy0Sh2P}D`C4&_E7eK{DjBF`ppt<~2L3NHV0OPX(d@1I-9jPE zo_@z)7&N<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oh1LhZO{Lo #include -#include +#include #define SERVER "irc.rizon.net" #define PORT 6667 #define CHANNEL "#/g/chad" #define USERNAME "probotic" -#define ERR(msg,ret) do { fputs(msg); return ret; } while (0) +#define ERR(ret,msg) do { fputs(msg "\n", stderr); return ret; } while (0) irc_session_t * session; irc_callbacks_t callbacks; @@ -83,10 +83,10 @@ init(void) session = irc_create_session(&callbacks); if (!session) - { ERR("Error creating IRC session\n", 1); } + { ERR(1, "Error creating IRC session"); } irc_connect(session, SERVER, PORT, 0, USERNAME, USERNAME, USERNAME); if (irc_run(session) != 0) - { ERR("Error running IRC session\nNo net?", 1); } + { ERR(1, "Error running IRC session\nNo net?"); } return 0; }