diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-07-05 17:06:26 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-07-05 17:27:56 -0700 |
commit | f19679d7f873fd80d6ba9eb7f398d9c53872e8a6 (patch) | |
tree | 247ad5e920087a56f19c24081fb1a8818a6b67f8 /src/modules/rkt | |
parent | 14b35ecd216fda58873b94cd2b211986f2b20e02 (diff) |
modules/rkt: rkt_scener_send_message() in another spot
Trivial related indentation adjustment too
Diffstat (limited to 'src/modules/rkt')
-rw-r--r-- | src/modules/rkt/rkt_scener.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/modules/rkt/rkt_scener.c b/src/modules/rkt/rkt_scener.c index c317642..8cf097f 100644 --- a/src/modules/rkt/rkt_scener.c +++ b/src/modules/rkt/rkt_scener.c @@ -214,9 +214,9 @@ static int rkt_scener_send_message(rkt_scener_t *scener, const char *msg, rkt_sc static int rkt_scener_send_welcome(rkt_scener_t *scener, rkt_scener_fsm_t next_state) { return rkt_scener_send_message(scener, - "\n\nWelcome to scener.\n" - "\n\n Long live the scene!\n\n", - next_state); + "\n\nWelcome to scener.\n" + "\n\n Long live the scene!\n\n", + next_state); } @@ -224,8 +224,8 @@ static int rkt_scener_send_welcome(rkt_scener_t *scener, rkt_scener_fsm_t next_s static int rkt_scener_send_goodbye(rkt_scener_t *scener, rkt_scener_fsm_t next_state) { return rkt_scener_send_message(scener, - "\n\n The scene is dead.\n\n", - next_state); + "\n\n The scene is dead.\n\n", + next_state); } @@ -1075,11 +1075,9 @@ int rkt_scener_update(rkt_context_t *ctxt) scener->new_scene.settings = NULL; - output = til_str_new("\n\nNew scene added successfully...\n"); - if (!output) - return rkt_scener_err_close(scener, ENOMEM); - - return rkt_scener_send(scener, output, RKT_SCENER_FSM_SEND_SCENES); + return rkt_scener_send_message(scener, + "\n\nNew scene added successfully...\n", + RKT_SCENER_FSM_SEND_SCENES); } case RKT_SCENER_FSM_SEND_NEWSCENE_SETUP_PROMPT: { |