Fixed lookup in presence scripts when outbound proxy is not set

Ignore-this: ad393620ab5b1008c0097122d643c985

darcs-hash:20090619074616-1e3d8-d657f9e41f0ec0818ff10cbf30e18e8bf610edc8