I'm developing a module that allows a user to set usermode +c, after which he won't see colors in any channel or PM.
The clients that connect to our server don't have the capability to strip colors on their side. Channelmode +S is not an option either.
I was wondering if someone could review the code that I already have.
The code is at http://pastebin.com/5BsAW4jH
I've based myself on the nocolorumode module, which only strips colors from PMs.
I copy/pasted bits from the sendto_channel_butone function in src/send.c
I'm confused about the difference between vsendto_prefix_one, sendto_prefix_one, and sendto_one.
I also don't know if it's safe to get rid of the last if statement
Code: Select all
if (sentalongm[(i = acptr->from->slot)] != sentalong_marking)
Edit: I already discovered that there's a problem when someone does /notice #channel message instead of a normal PRIVMSG. But I yet have to find out how to fix it