sic-definednickname-20200708-7f0141b.diff (589B)
1 diff --git config.def.h config.def.h 2 index ce5b9b7..6d720e9 100644 3 --- config.def.h 4 +++ config.def.h 5 @@ -4,9 +4,6 @@ 6 /* Port used when "-p" is not given */ 7 #define DEFAULT_PORT "6667" 8 9 -/* Nickname when "-n" is not given */ 10 -#define NICK "maniac" 11 - 12 /* Timestamp format; see strftime(3). */ 13 #define TIMESTAMP_FORMAT "%Y-%m-%d %R" 14 15 diff --git sic.c sic.c 16 index 72d6026..ecefaf2 100644 17 --- sic.c 18 +++ sic.c 19 @@ -146,7 +146,7 @@ usage(void) { 20 int 21 main(int argc, char *argv[]) { 22 struct timeval tv; 23 - const char *user = NICK; 24 + const char *user = getenv("USER"); 25 int n; 26 fd_set rd; 27