mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
More tweaks to the default avatar.
This commit is contained in:
parent
aecfcacc32
commit
756e8cb2a7
1 changed files with 6 additions and 1 deletions
|
@ -37,7 +37,12 @@ const char *susie_cool =
|
||||||
const char *default_avatar_base64(void)
|
const char *default_avatar_base64(void)
|
||||||
/* returns the default avatar in base64 */
|
/* returns the default avatar in base64 */
|
||||||
{
|
{
|
||||||
return susie;
|
time_t t = time(NULL);
|
||||||
|
struct tm tm;
|
||||||
|
|
||||||
|
gmtime_r(&t, &tm);
|
||||||
|
|
||||||
|
return tm.tm_wday == 0 || tm.tm_wday == 6 ? susie_cool : susie;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue