[Libtorrent-devel] rtorrent if= command

Jari Sundell jaris at student.matnat.uio.no
Fri Jan 4 12:28:01 UTC 2008


Peter Lundkvist wrote:
> I tried your code and it seems like both branches are executed now.
> To debug, I tried the following command in the client:
> 
> if=$d.get_custom1=,$print=test1,$print=test2
> 
> which gives me the following output:
> 
> (21:36:03) test1
> (21:36:03) test2
> 
> Am I still doing something wrong?

The problem is the $ gets caught too early for this purpose, and the 
"if" command doesn't handle it properly if we try to escape it with "\\".

I'll look at fixing the if command later.

Jari Sundell


More information about the Libtorrent-devel mailing list