diff options
| author | Alexander Barton <alex@barton.de> | 2011-07-10 14:45:33 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2011-07-10 14:45:33 +0200 |
| commit | e160121698e7ec51f3e763dbdb1b76f755e47729 (patch) | |
| tree | 7c6ed60d6b1b0659f95c4b817a4480478ff61d5d | |
| parent | 54566b6b32441044660c8fca784ef7b09b933a7e (diff) | |
| download | ngircd-e160121698e7ec51f3e763dbdb1b76f755e47729.tar.gz ngircd-e160121698e7ec51f3e763dbdb1b76f755e47729.zip | |
MorePrivacy: Don't register WHOWAS information
Citing an email from Florian to the ngIRCd mailing list: "I wonder what the expected behaviour is when Conf_MorePrivacy is changed from 'yes' to 'no' and the config is reloaded. At the moment, WHOWAS will start giving out information on Users that were connected during Conf_MorePrivacy=yes period. If this is not wanted, Client_RegisterWhowas() should be changed to not store a record when Conf_MorePrivacy is enabled." And I think it is "not wanted" :-)
| -rw-r--r-- | src/ngircd/client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ngircd/client.c b/src/ngircd/client.c index d038fd24..83c80f84 100644 --- a/src/ngircd/client.c +++ b/src/ngircd/client.c @@ -1192,6 +1192,10 @@ Client_RegisterWhowas( CLIENT *Client ) assert( Client != NULL ); + /* Don't register WHOWAS information when "MorePrivacy" is enabled. */ + if (Conf_MorePrivacy) + return; + now = time(NULL); /* Don't register clients that were connected less than 30 seconds. */ if( now - Client->starttime < 30 ) |