~martijnbraam/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] main.c: Fix trailing whitespace

Konrad Dybcio
Details
Message ID
<20201020193131.67761-1-konradybcio@gmail.com>
DKIM signature
pass
Download raw message
Patch: +3 -3
---
 main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/main.c b/main.c
index 6ca513b..f40c984 100644
--- a/main.c
+++ b/main.c
@@ -293,7 +293,7 @@ broadcast_ghosts(char* message, int notfd)
	snprintf(buf, sizeof(buf), "%s\n", message);

	for (pid = 0; pid < NUM_PLAYERS; pid++) {
		if (players[pid].fd == -1 
		if (players[pid].fd == -1
				|| players[pid].fd == notfd
				|| players[pid].stage == PLAYER_STAGE_NAME
				|| alive(players[pid]))
@@ -761,7 +761,7 @@ not_yet:
			players[vote].state = PLAYER_STATE_KICKED;
			goto check_votes;

		} else if (strncmp(input, "/me ", 4) == 0) {	
		} else if (strncmp(input, "/me ", 4) == 0) {
			if (alive(players[pid])) {
				snprintf(buf, sizeof(buf), "(%d) * [%s] %s", state.chats_left, players[pid].name, &input[4]);
				broadcast(buf, -1);
@@ -770,7 +770,7 @@ not_yet:
				snprintf(buf, sizeof(buf), "(dead) * [%s] %s", players[pid].name, &input[4]);
				broadcast_ghosts(buf, -1);
			}
		} else if (strncmp(input, "/shrug", 6) == 0) {	
		} else if (strncmp(input, "/shrug", 6) == 0) {
			if (alive(players[pid])) {
				snprintf(buf, sizeof(buf), "(%d) [%s]: ¯\\_(ツ)_/¯", state.chats_left, players[pid].name);
				broadcast(buf, -1);
-- 
2.28.0
Details
Message ID
<C6HYW8J85FEF.38XR4C53LJ5GJ@jungfrau>
In-Reply-To
<20201020193131.67761-1-konradybcio@gmail.com> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git@git.sr.ht:~martijnbraam/among-sus
   5a83eed..2d02967  master -> master
Reply to thread Export thread (mbox)