]> jfr.im git - irc/rqf/shadowircd.git/commit - src/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)
commit2386ae047718b0b3c6fb337c50e40da797cacd8e
treeabf6329f4aac7c8ca584bf2bb1db89b210ac876c
parent4f5ec033bc32ec109bdbc7d97b1f7397f994eeba
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