Fix compilation error ("server.ex:75: function function/3 undefined")
Merge pull request #6 from elia/patch-1

Fix compilation error