#4153: script and some other crates

Replaced appropriate `match` statements with `if let` in these crates:
- script
- net
- plugins