This patch makes it possible to use a custom wiki for article lookup other than wikipedia.
Therefore an additional config variable is introduced in files/infobot.config
# [str] set an alternative wiki for wiki-lookups (must be a MediaWiki)
set wikiBaseUrl http://http://www.wikipedia.org/wiki/
The default setting of this should be wikipedia's url, in order to keep the current behaviour.
Additionally the 'wiki' command is mapped to a new method in the module that sets the url to the specified wiki and then continues as before.
The 'wikipedia' command always uses wikipedia, regardless of what is specified in the config.
With this patch the module is also able to look up articles in different languages. The default is english (as 'www' is being redirected to 'en' by Wikipedia).
The new syntax is
~wikipedia Test -> looks up the english "Test" article
~wikipedia en Test -> also looks up the english "Test" article
~wikipedia de Test -> looks up the german "Test" article
The above changes are adressed in the help messages and have been tested as much as I was able to;
also there were some minor changes in how the LWP::UserAgent module is used.
extended functionality of the wikipedia module