But that would mean my code would need to be longer because the sockwrite event doesn't pass what was written and to where, you are required to do this by redefining the sockwrite alias and will make things messy.
I understand that there is a queue involved but as I said before if nothing is in the queue why isn't it sent instantly?
And my use of fopen etc was just an example to show that it should be processed in the order it is set otherwise it is unreliable, you could have someone on a custom banlist and have your message to the channel stating they are banned with a kick afterwards but the kick would be done first... It's just not logical.
But if this is how Khaled wants the sockwrite to work at least add a switch so we can bypass the queue?