+#if 0 // Dead Code
+/**
+ * \brief Move money from one user to another (Admin Only)
+ */
+int DispenseTransfer(int ActualUser, int SrcUser, int DestUser, int Ammount, const char *ReasonGiven)
+{
+ int ret;
+ char *actualUsername;
+ char *srcName, *dstName;
+
+ // Make sure the user is an admin
+ if( !(Bank_GetFlags(ActualUser) & USER_FLAG_ADMIN) )
+ return 1;
+
+ ret = _Transfer( SrcUser, DestUser, Ammount, ReasonGiven );
+ if(ret) return 2; // No Balance
+
+
+ actualUsername = Bank_GetAcctName(ActualUser);
+ srcName = Bank_GetAcctName(SrcUser);
+ dstName = Bank_GetAcctName(DestUser);
+
+ Log_Info("move %i from %s to %s by %s [balances %i, %i] - %s",
+ Ammount, srcName, dstName, actualUsername,
+ Bank_GetBalance(SrcUser), Bank_GetBalance(DestUser),
+ ReasonGiven
+ );
+
+ free(srcName);
+ free(dstName);
+ free(actualUsername);
+
+ return 0;
+}
+#endif
+