Got stuck again...
I'm currently creating a script which should do a channel add, post something into it and finally channel remove. I need to go that way because lots of (Clan-)channel on Quakenet are +n protected. (The scripts purpose is to allow trusted user to place a search request for a funwar opponent - no misuse for spam or ad!)
It looks like the completion of the channel add command is taking up too much time and the putserv/putquick command for the msg itself is being sent out to the chan while the bot is not yet recognized there. The msg itself is treated as an external Msg and dropped due to the +n chanmode.
Is there a proper way to get around that?
I know that the above works fine using the putserv command if the bot remain online in the channel. It would help to find out when the msg had been successfully posted so the bot may quit the channel then.
That's exactly what I meant.
Tested the easy way 'putserv "join #blah\nprivmsg #blah :hello sheep!\npart #blah' without success or better with the same behaviour: Bot joins and parts, no msg at all. (Phew... If it really were that easy I would have kicked myself )
The 'bind join' solution sounds more interesting. I always thought monitoring a join event is only possible if the bot is already on the chan!?
Will give a try and return the result.
Ok I tested it and it didn't work. Not because of the join delay, but because putserv parses the text you send it and filters out multiple messages (anything past the first \n).
putdccraw does not manipulate the text at all, it just sends it. I tested this and it works, although you get a log message saying "joined #blah but didn't want to!" One way around that is to use channel add before the putdccraw... or just ignore the log message. :)