diff options
author | antirez <antirez@gmail.com> | 2018-09-13 21:35:52 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-09-13 21:36:02 +0200 |
commit | 9849cf2df5945d67df6cdf84812e73e3f31f7228 (patch) | |
tree | 6f86e9e8375240a32d6a5470b0480d827aaa778b /src/lolwut.c | |
parent | d23cae5f062ee41e7c866d9872960cb436e567b4 (diff) | |
download | redis-9849cf2df5945d67df6cdf84812e73e3f31f7228.tar.gz |
LOLWUT: add Redis version in the output.
This creates an incentive to run the command and as a side effect
experience the art piece inside.
Diffstat (limited to 'src/lolwut.c')
-rw-r--r-- | src/lolwut.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lolwut.c b/src/lolwut.c index 6e07d7c58..c8d036a27 100644 --- a/src/lolwut.c +++ b/src/lolwut.c @@ -274,7 +274,9 @@ void lolwutCommand(client *c) { lwCanvas *canvas = lwDrawSchotter(cols,squares_per_row,squares_per_col); sds rendered = lwRenderCanvas(canvas); rendered = sdscat(rendered, - "\nGeorg Nees - Schotter, Plotter on paper, 1968.\n"); + "\nGeorg nees - schotter, plotter on paper, 1968. Redis ver. "); + rendered = sdscat(rendered,REDIS_VERSION); + rendered = sdscatlen(rendered,"\n",1); addReplyBulkSds(c,rendered); lwFreeCanvas(canvas); } |