Subject: | Advertised version comes from configuration file and is not updated on updates |
Date: | Wed, 15 May 2013 15:03:20 +0200 |
To: | bug-Bot-Pastebot [...] rt.cpan.org |
From: | Axel Beckert <abe [...] deuxchevaux.org> |
Hi,
I just updated our instance of Bot::Pastebot from 0.51 to 0.543. But
"/ctcp version" still yielded "Bot::Pastebot/0.51" which confused me a
lot. It was still there after I've removed all possible traces of the
0.51 installation.
Then I finally noticed that the version string comes from
/etc/pastebot.conf and even seems mandatory, because if I remove it,
pastebot argues "conf error: section `irc' requires item `cver' at
/etc/pastebot.conf line 10".
I would have expected that the version returned by the IRC bot
reflects the running version of Bot::Pastebot and is not an arbitrary
string by default.
It's nice that the string is settable by the administrator, but IMHO
it should be telling the real version by default, i.e. it should not
come from the local configuration file by default.
Additionally I'd have expected to find some $VERSION variable
somewhere in the module, so that e.g. pmvers from the pntools
distribution would show it. Currently it doesn't:
# pmvers Bot::Pastebot
/usr/bin/pmvers: unknown version for module `Bot::Pastebot'
Kind regards, Axel
--
/~\ Plain Text Ribbon Campaign | Axel Beckert
\ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail)
X See http://www.asciiribbon.org/ | abe@noone.org (Mail+Jabber)
/ \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)