Tom Gilbert [Wed, 20 Jul 2005 00:17:51 +0000 (00:17 +0000)]
Add new httputil object to the bot object, to be used by plugins etc that
wish to make http requests. It sets up all the proxies etc for them
according to bot config.
Tom Gilbert [Tue, 19 Jul 2005 16:13:21 +0000 (16:13 +0000)]
at some point over the last couple of years, the ruby http library started
throwing timeout exceptions from .new, wheras they used to come from .get.
This means timeouts kill the bot so I've moved all the http code into the
begin block.
Tom Gilbert [Thu, 14 Jul 2005 22:51:05 +0000 (22:51 +0000)]
Rudolf Polzer pointed out (a while ago, I forgot to apply this fix) an issue
with rbot's string handling. Most ircds are pretty liberal about lines
ending in various combinations of \r, \n, etc.
We need to be careful about strings we pass to the ircd that may have come
from users/untrusted sources (such as the output of the wserver plugin), and
sanitize their line endings so that raw commands can't be sneaked through to
the ircd.