Loading src/client/onoff.c +4 −4 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ int announce_logon(const char *usr, int type, int quiet) json_addstring(j, "user", usr); json_addint(j, "action", ONOFF_LOGON); json_addint(j, "type", type); json_object_set(j, "quiet", json_boolean(quiet)); json_object_set(j, "quiet", quiet ? json_true() : json_false()); msg = ipcmsg_create(IPC_CHECKONOFF, user->posn); ipcmsg_destination(msg, SYSTEM_USER); Loading @@ -38,7 +38,7 @@ int announce_logoff(const char *usr, int type, const char *agent, const char *re json_addstring(j, "user", usr); json_addint(j, "action", ONOFF_LOGOFF); json_addint(j, "type", type); json_object_set(j, "quiet", json_boolean(quiet)); json_object_set(j, "quiet", quiet ? json_true() : json_false()); if (agent != NULL) json_addstring(j, "agent", agent); if (reason != NULL) Loading @@ -62,7 +62,7 @@ int announce_join(const char *usr, int channel, int type, const char *agent, int json_addint(j, "action", ONOFF_JOIN); json_addint(j, "channel", channel); json_addint(j, "type", type); json_object_set(j, "quiet", json_boolean(quiet)); json_object_set(j, "quiet", quiet ? json_true() : json_false()); if (agent != NULL) json_addstring(j, "agent", agent); Loading @@ -84,7 +84,7 @@ int announce_leave(const char *usr, int channel, int type, const char *agent, co json_addint(j, "action", ONOFF_LEAVE); json_addint(j, "channel", channel); json_addint(j, "type", type); json_object_set(j, "quiet", json_boolean(quiet)); json_object_set(j, "quiet", quiet ? json_true() : json_false()); if (agent != NULL) json_addstring(j, "agent", agent); if (lmsg != NULL) Loading Loading
src/client/onoff.c +4 −4 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ int announce_logon(const char *usr, int type, int quiet) json_addstring(j, "user", usr); json_addint(j, "action", ONOFF_LOGON); json_addint(j, "type", type); json_object_set(j, "quiet", json_boolean(quiet)); json_object_set(j, "quiet", quiet ? json_true() : json_false()); msg = ipcmsg_create(IPC_CHECKONOFF, user->posn); ipcmsg_destination(msg, SYSTEM_USER); Loading @@ -38,7 +38,7 @@ int announce_logoff(const char *usr, int type, const char *agent, const char *re json_addstring(j, "user", usr); json_addint(j, "action", ONOFF_LOGOFF); json_addint(j, "type", type); json_object_set(j, "quiet", json_boolean(quiet)); json_object_set(j, "quiet", quiet ? json_true() : json_false()); if (agent != NULL) json_addstring(j, "agent", agent); if (reason != NULL) Loading @@ -62,7 +62,7 @@ int announce_join(const char *usr, int channel, int type, const char *agent, int json_addint(j, "action", ONOFF_JOIN); json_addint(j, "channel", channel); json_addint(j, "type", type); json_object_set(j, "quiet", json_boolean(quiet)); json_object_set(j, "quiet", quiet ? json_true() : json_false()); if (agent != NULL) json_addstring(j, "agent", agent); Loading @@ -84,7 +84,7 @@ int announce_leave(const char *usr, int channel, int type, const char *agent, co json_addint(j, "action", ONOFF_LEAVE); json_addint(j, "channel", channel); json_addint(j, "type", type); json_object_set(j, "quiet", json_boolean(quiet)); json_object_set(j, "quiet", quiet ? json_true() : json_false()); if (agent != NULL) json_addstring(j, "agent", agent); if (lmsg != NULL) Loading