~martijnbraam/public-inbox

main.c: Fix trailing whitespace v1 APPLIED

Konrad Dybcio
Konrad Dybcio: 1
 main.c: Fix trailing whitespace

 1 files changed, 3 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~martijnbraam/public-inbox/patches/14382/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] main.c: Fix trailing whitespace Export this patch

Konrad Dybcio
---
 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
Thanks!

To git@git.sr.ht:~martijnbraam/among-sus
   5a83eed..2d02967  master -> master