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))
last_wallet_update_time = time.time()
RegisterIdleFunction("payment",UpdateCoin)
RegisterIdleFunction(__name__,UpdateCoin)

View file

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

View file

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