/* call-seq:
 *      bz_get_group_perms(group) -> array
 *
 *      This method returns an array which contains all perms of a  
 *      given group.
 */ 

static VALUE
bzflag_bz_getGroupPerms(VALUE self, VALUE group)
{
        int i;
        VALUE perms = rb_ary_new();

        for (i = 0; i < (bz_getGroupPerms(RSTRING(StringValue(group))->ptr))->size(); i++)
                rb_ary_push(perms, rb_str_new2((bz_getGroupPerms(RSTRING(StringValue(group))->ptr))->get(i).c_str()));

        return perms;
}