Update plugin.py

This commit is contained in:
Gordon Shumway 2019-09-08 10:01:53 -04:00 committed by GitHub
parent 8b8f0e9fb6
commit e3573cae04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -1318,9 +1318,10 @@ class Suds(callbacks.Plugin):
if conn.companies.values():
for company in conn.companies.values():
text = '%s | Value: %d, Loan: %d, Income: %d, Delivered Cargo: %d' % (
company.name, utils.companyValue(company))
irc.reply(text)
if not company.id == 255:
text = '%s | Value: %d, Loan: %d, Income: %d, Delivered Cargo: %d' % (
company.name, utils.companyValue(company))
irc.reply(text)
else:
irc.reply('There are currently no companies in existence. '\
'Without companies, there cannot be an economy')