Some people have reported that they had trouble with automating logging in to cbstream with the new login mechanism. Thus, hereby I publish an example that worked for me.
This is a shell command that starts a new connection to the irc server assuming your nick and sending a permanent login message to cbstream. For this reason, you have to run this before connecting with your real irc client, or there'd be a nick clash.
The command is in bash, requires netcat, but it wouldn't be too hard to convert it to a simple perl script as well.
It uses the values of four shell parameters that you should previously set, these must contain your irc nickserv password, irc nick, perlmonks user name, and perlmonks password respectively. If the perlmonks user or password contains strange characters, you have to use a quoted form that cbstream accepts.
echo $'PASS :'"$IRCPASS"$'\nUSER 0 0 0 x\nNICK '"$IRCNICK"$'\nJOIN #cb +stream-login\nPRIVMSG #cbstream-login :plogin '"$PMUSER $PMPASS"$'\nQ +UIT\n' | nc -v irc.freenode.net 6667
In reply to Logging in to cbstream from a script by ambrus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |