If a user doesn't have build rights, don't allow them to move items to and from their...
authorJacobF <queatz@gmail.com>
Wed, 24 Aug 2011 02:08:09 +0000 (22:08 -0400)
committerJacobF <queatz@gmail.com>
Wed, 24 Aug 2011 02:08:09 +0000 (22:08 -0400)
src/server.cpp

index a8eb68c55a95cc5d1fb9d1dd4f1424404d9cc32c..88cd7f342dd48eb8fbb08e7ce04da049eb937c1c 100644 (file)
@@ -3198,6 +3198,9 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
                                                mlist->addItem(item1);
                                        }
                                }
+                               // Disallow moving items if not allowed to build
+                               else if((getPlayerPrivs(player) & PRIV_BUILD) == 0)
+                                       return;
                        }
                        
                        if(disable_action == false)