/* call-seq: * player.grant_perm(String perm) -> true or false * * This method grants the specified perm to the player and * returns true on success, false if unsuccesfull. */ static VALUE playerRecord_setGrantPerm(VALUE self, VALUE perm) { bz_PlayerRecord *playerRecord; Data_Get_Struct(self, bz_PlayerRecord, playerRecord); if (bz_grantPerm(playerRecord->playerID, RSTRING(StringValue(perm))->ptr)) return Qtrue; return Qfalse; }