]> jfr.im git - solanum.git/commit - ircd/send.c
send_linebuf_remote(): Remove broken and useless ghost check that can never happen.
authorJilles Tjoelker <redacted>
Thu, 17 Jan 2008 00:06:32 +0000 (01:06 +0100)
committerJilles Tjoelker <redacted>
Thu, 17 Jan 2008 00:06:32 +0000 (01:06 +0100)
commit8d0d947de83b8c3502b7b73d323a1a0a2e29f890
treeabf6329f4aac7c8ca584bf2bb1db89b210ac876c
parent19807b5b977109aeae33dbe6e5874ac663d7faba
send_linebuf_remote(): Remove broken and useless ghost check that can never happen.

Reasoning why it never does anything:
- the to = to->from line makes sure that MyConnect(to)
- then IsPerson(to) && (to == from->from) implies that to == from
- so MyClient(to)
- which cannot happen because it also wants that !MyClient(from)

Originally, the to = to->from line was below, and it did a
fake direction check, killing a client if servers could be
confused about it. The kill cannot do any good with TS6.

The fake direction check is and was performed by the
callers of send_linebuf_remote().
src/send.c