mirror of
https://github.com/benapetr/stikkit.git
synced 2025-04-25 20:41:20 -05:00
Add support of "~/.stikkit/private"
This commit is contained in:
parent
efbdaa0c6d
commit
950094775c
@ -61,6 +61,7 @@ Within this directory, there are a few key files worth creating.
|
||||
- *apikey* - If your stikked installation requires an API key, save it in here
|
||||
- *expiry* - The default expiry time (in minutes) for a paste, if needed
|
||||
- *author* - The default author name if you wish to use one
|
||||
- *private* - If you want to mark the paste as private (not visible in recent pastes), create this empty file
|
||||
|
||||
Tips
|
||||
=====
|
||||
|
@ -114,6 +114,13 @@ void Configuration::Init()
|
||||
Configuration::Author = lineauth;
|
||||
}
|
||||
fauth.close();
|
||||
|
||||
//private
|
||||
std::ifstream fpriv(homedir + "/.stikkit/private");
|
||||
if(fpriv.good())
|
||||
{
|
||||
Configuration::Private = true;
|
||||
}
|
||||
}
|
||||
if (Configuration::Author.length() < 1)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user