Copy this patch into ircd sources root and execute `patch -p0 -i fakeapi-1.4.diff`
After that you will have to ./configure your ircd once again
or you will get link errors in the end of compilation.
Another way is to add 2 files (s_new.c and s_layer.c) to src/Makefile

patch should work on most modified versions of ircd-hybrid-7.
If not, feel free to contact me (admin@su29.net)
Some modifications in fake_client may be required in older versions of hybrid
(for example, chimera-1.0.5c/dalnet.ru))

Read end of hooks.readme if you wish to test m_fake.c !