From e5729bc86d8148dcb39339d488b674e125fe0aa9 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 16 Aug 2016 11:03:58 +0200 Subject: [PATCH] Remove VersionIfEmpty config type, useless since 278a111f5f95e009f222cd6fcb9c6af0230e6439. --- src/conf.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/conf.py b/src/conf.py index cea12ed4a..86b78c35f 100644 --- a/src/conf.py +++ b/src/conf.py @@ -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.""")))