Use __name__ as module name

This commit is contained in:
moneromooo 2015-01-01 10:12:03 +00:00
parent a59e883626
commit e4b403cc31
3 changed files with 7 additions and 7 deletions

View file

@ -89,5 +89,5 @@ def UpdateCoin(param):
log_error('UpdateCoin: Failed to get bulk payments: %s' % str(e)) log_error('UpdateCoin: Failed to get bulk payments: %s' % str(e))
last_wallet_update_time = time.time() last_wallet_update_time = time.time()
RegisterIdleFunction("payment",UpdateCoin) RegisterIdleFunction(__name__,UpdateCoin)

View file

@ -243,7 +243,7 @@ def RainActive(nick,chan,cmd):
RegisterCommand({ RegisterCommand({
'module': 'tipping', 'module': __name__,
'name': 'tip', 'name': 'tip',
'parms': '<nick> <amount>', 'parms': '<nick> <amount>',
'function': Tip, 'function': Tip,
@ -251,7 +251,7 @@ RegisterCommand({
'help': "tip another user" 'help': "tip another user"
}) })
RegisterCommand({ RegisterCommand({
'module': 'tipping', 'module': __name__,
'name': 'rain', 'name': 'rain',
'parms': '<amount> [<users>]', 'parms': '<amount> [<users>]',
'function': Rain, 'function': Rain,
@ -259,7 +259,7 @@ RegisterCommand({
'help': "rain some coins on everyone (or just a few)" 'help': "rain some coins on everyone (or just a few)"
}) })
RegisterCommand({ RegisterCommand({
'module': 'tipping', 'module': __name__,
'name': 'rainactive', 'name': 'rainactive',
'parms': '<amount> [<hours>]', 'parms': '<amount> [<hours>]',
'function': RainActive, 'function': RainActive,

View file

@ -147,7 +147,7 @@ def Withdraw(nick,chan,cmd):
RegisterCommand({ RegisterCommand({
'module': 'withdraw', 'module': __name__,
'name': 'withdraw', 'name': 'withdraw',
'parms': '<address> [<amount>]', 'parms': '<address> [<amount>]',
'function': Withdraw, 'function': Withdraw,
@ -155,14 +155,14 @@ RegisterCommand({
'help': "withdraw part or all of your balance" 'help': "withdraw part or all of your balance"
}) })
RegisterCommand({ RegisterCommand({
'module': 'withdraw', 'module': __name__,
'name': 'enable_withdraw', 'name': 'enable_withdraw',
'function': EnableWithdraw, 'function': EnableWithdraw,
'admin': True, 'admin': True,
'help': "Enable withdrawals" 'help': "Enable withdrawals"
}) })
RegisterCommand({ RegisterCommand({
'module': 'withdraw', 'module': __name__,
'name': 'disable_withdraw', 'name': 'disable_withdraw',
'function': DisableWithdraw, 'function': DisableWithdraw,
'admin': True, 'admin': True,