From cea60feeae661bdf41fc78675ae54bec1e2d77a6 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Thu, 19 Mar 2015 20:55:03 +0000 Subject: [PATCH] Create accounts on linking if they do not exist This can happen if someone tries to link to another account before doing any other action that creates an account. --- tipbot/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tipbot/utils.py b/tipbot/utils.py index 5a70a4a..06b6135 100644 --- a/tipbot/utils.py +++ b/tipbot/utils.py @@ -349,8 +349,8 @@ def LinkCore(link,other_identity): if links: if identity in links.split(chr(0)): # we have both - account=redis_hget('accounts',identity) - other_account=redis_hget('accounts',other_identity) + account=GetAccount(identity) + other_account=GetAccount(other_identity) if account==other_account: log_info('%s and %s already have the same account: %s' % (identity,other_identity,account)) return True, "same-account"