mirror of
https://github.com/benapetr/stikkit.git
synced 2025-05-04 09:21:13 -05:00
Add support of "~/.stikkit/private"
This commit is contained in:
parent
dcba663d8d
commit
f2766d7604
@ -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
|
- *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
|
- *expiry* - The default expiry time (in minutes) for a paste, if needed
|
||||||
- *author* - The default author name if you wish to use one
|
- *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
|
Tips
|
||||||
=====
|
=====
|
||||||
|
@ -92,6 +92,13 @@ void Configuration::Init()
|
|||||||
Configuration::Author = lineauth;
|
Configuration::Author = lineauth;
|
||||||
}
|
}
|
||||||
fauth.close();
|
fauth.close();
|
||||||
|
|
||||||
|
//private
|
||||||
|
std::ifstream fpriv(homedir + "/.stikkit/private");
|
||||||
|
if(fpriv.good())
|
||||||
|
{
|
||||||
|
Configuration::Private = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (Configuration::Author.length() < 1)
|
if (Configuration::Author.length() < 1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user