[wiki] [sites] Revert "Added new sic patch. Which allows the user to define the nickname in" || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Wed, 08 Jul 2020 20:53:52 +0200

commit 7bc3d6b638758f4fc1fd2c519532a6b361a50a49
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Wed Jul 8 20:51:19 2020 +0200

    Revert "Added new sic patch. Which allows the user to define the nickname in"
    
    This reverts commit 05b4814b953d023d68ec29668ef27667bee0dc09.
    
    Reasons:
    - The patch format is reversed.
    - The link to the patch is broken.
    
    Also: is this patch even useful? Using the environment variable is more
    flexible in this case.

diff --git a/tools.suckless.org/sic/patches/defined_nickname/index.md b/tools.suckless.org/sic/patches/defined_nickname/index.md
deleted file mode 100644
index cfca520d..00000000
--- a/tools.suckless.org/sic/patches/defined_nickname/index.md
+++ /dev/null
_AT_@ -1,9 +0,0 @@
-# Define username in config.def.h
-
-This patch allows to define the username in config.def.h instead of using getenv()
-
-The constant name is `NICK` and its default value is `maniac`
-
-## Download
-
-* <sic-definednickname-20668b.diff>
diff --git a/tools.suckless.org/sic/patches/defined_nickname/sic-definednickname-20200708-7f0141b.diff b/tools.suckless.org/sic/patches/defined_nickname/sic-definednickname-20200708-7f0141b.diff
deleted file mode 100644
index 34065140..00000000
--- a/tools.suckless.org/sic/patches/defined_nickname/sic-definednickname-20200708-7f0141b.diff
+++ /dev/null
_AT_@ -1,27 +0,0 @@
-diff --git config.def.h config.def.h
-index ce5b9b7..6d720e9 100644
---- config.def.h
-+++ config.def.h
-_AT_@ -4,9 +4,6 @@
- /* Port used when "-p" is not given */
- #define DEFAULT_PORT "6667"
-
--/* Nickname when "-n" is not given */
--#define NICK "maniac"
--
- /* Timestamp format; see strftime(3). */
- #define TIMESTAMP_FORMAT "%Y-%m-%d %R"
- 
-diff --git sic.c sic.c
-index 72d6026..ecefaf2 100644
---- sic.c
-+++ sic.c
-_AT_@ -146,7 +146,7 @@ usage(void) {
- int
- main(int argc, char *argv[]) {
- 	struct timeval tv;
--	const char *user = NICK;
-+	const char *user = getenv("USER");
- 	int n;
- 	fd_set rd;
- 
Received on Wed Jul 08 2020 - 20:53:52 CEST

This archive was generated by hypermail 2.3.0 : Wed Jul 08 2020 - 21:00:46 CEST