Remove VersionIfEmpty config type, useless since 278a111f5f.

This commit is contained in:
Valentin Lorentz 2016-08-16 11:03:58 +02:00
parent 278a111f5f
commit e5729bc86d
1 changed files with 1 additions and 8 deletions

View File

@ -212,15 +212,8 @@ registerGlobalValue(supybot, 'ident',
ValidNick('limnoria', _("""Determines the bot's ident string, if the server
doesn't provide one by default.""")))
class VersionIfEmpty(registry.String):
def __call__(self):
ret = registry.String.__call__(self)
if not ret:
ret = 'Limnoria %s' % version
return ret
registerGlobalValue(supybot, 'user',
VersionIfEmpty('', _("""Determines the real name which the bot sends to
registry.String('Limnoria $version', _("""Determines the real name which the bot sends to
the server. A standard real name using the current version of the bot
will be generated if this is left empty.""")))