mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-19 23:20:57 +01:00
Remove VersionIfEmpty config type, useless since 278a111f5f95e009f222cd6fcb9c6af0230e6439.
This commit is contained in:
parent
278a111f5f
commit
e5729bc86d
@ -212,15 +212,8 @@ registerGlobalValue(supybot, 'ident',
|
|||||||
ValidNick('limnoria', _("""Determines the bot's ident string, if the server
|
ValidNick('limnoria', _("""Determines the bot's ident string, if the server
|
||||||
doesn't provide one by default.""")))
|
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',
|
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
|
the server. A standard real name using the current version of the bot
|
||||||
will be generated if this is left empty.""")))
|
will be generated if this is left empty.""")))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user