// Sanity please
if( Item == 0 ) return -1;
+ if( !(Bank_GetFlags(User) & USER_FLAG_DOORGROUP) )
+ return 1;
+
return 0;
}
*/
int Door_DoDispense(int User, int Item)
{
- char tmp[32], *status;
- regmatch_t matches[4];
-
// Sanity please
if( Item != 0 ) return -1;
+ // Check if user is in door
+ if( !(Bank_GetFlags(User) & USER_FLAG_DOORGROUP) )
+ return 1;
+
// llogin or other
return 0;