about summary refs log tree commit diff
AgeCommit message (Collapse)Author
2026-01-10Make all files dependent on ircd.hNakidai
There were bugs when struct layout was changed, and this was right because needed files were not rebuilt. This is fixed now
2026-01-10Simplify pledgeNakidai
In the past there was a configpath parameter, and unveil was allowing to read at this path. But now accessing filesystem is redundant completely
2026-01-07Add comments for some macrosNakidai
2026-01-07Use function with switch() in reply.cNakidai
Overall, this solution looks better. Also, now macro is better
2026-01-07Move quit announcement code to quit()Nakidai
Well, it's more appropriate for that function to handle this rather than for ircd(). Now code looks simpler, ircd() is not that complex, and support for optional quit message is present
2026-01-07Fix user quitNakidai
When user A leaves, last user in the peer list B is copied into the space left by leaving A. But, besides that it also important to not forget that there can be channels containing B: they store a link to every user belonging. So, it's important to adjust all links to B iterating every channel B belongs to.
2026-01-06Replace for (;;) with gotoNakidai
It reduces indentation, which was quite pointless in that loop
2026-01-06Use strtoul instead of strtodNakidai
I really thought strtod was converting to integers...
2026-01-06Add basic channelsNakidai
Though they don't have modes, and JOIN/PART must be able to parse comma separated list of channels
2026-01-04Add codeNakidai