rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.05k stars 412 forks source link

Equal command doesn't work with custom set data #1142

Open HarryMuscle opened 2 years ago

HarryMuscle commented 2 years ago

The equal command doesn't seem to work with custom set data. The following simple example should result in d.true_method being called (ie: the equal command returns true) but d.false_method is always called (ie: the equal command returns false):

method.insert = d.test_method, simple, \
  "d.custom2.set = \"yes\"; \
  branch = ((equal, ((d.custom2)), ((cat, \"yes\")))), \
    ((d.true_method)), \
    ((d.false_method))"