aboutsummaryrefslogtreecommitdiffstats
path: root/include/Contact.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2012-03-22 16:03:14 +0100
committerzottel <github@zottel.net>2012-03-22 16:03:14 +0100
commite7d80a79fff23e6f8900b40677d11d1022a45df6 (patch)
tree29355722fb8a3e993884e852a254277c80e90de4 /include/Contact.php
parent3f3c4aec79bf3ceedd551bae7cec7acfd68e3772 (diff)
parent622b25df5f2d1ab21c9e23047bc0c98bfe72bad0 (diff)
downloadvolse-hubzilla-e7d80a79fff23e6f8900b40677d11d1022a45df6.tar.gz
volse-hubzilla-e7d80a79fff23e6f8900b40677d11d1022a45df6.tar.bz2
volse-hubzilla-e7d80a79fff23e6f8900b40677d11d1022a45df6.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'include/Contact.php')
-rwxr-xr-xinclude/Contact.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/Contact.php b/include/Contact.php
index baccea305..d9949b1ef 100755
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -15,6 +15,12 @@ function user_remove($uid) {
call_hooks('remove_user',$r[0]);
+ // save username (actually the nickname as it is guaranteed
+ // unique), so it cannot be re-registered in the future.
+
+ q("insert into userd ( username ) values ( '%s' )",
+ $r[0]['nickname']
+ );
q("DELETE FROM `contact` WHERE `uid` = %d", intval($uid));
q("DELETE FROM `group` WHERE `uid` = %d", intval($uid));