Jump to content

2 posts in this topic

Recommended Posts

Posted

hey guys so ive been stuck on this one for awhile.

 

%hook ChatManager

-(void)leaveChat:(id)arg1 Silently:(BOOL)arg2 skipSave:(BOOL)arg3
{
  if (((NSNumber *)getOptionForKey(kChatRefresh, kGlobalUser)).boolValue) arg2,arg3 = YES;
  return %orig(arg1,arg2,arg3);
}

%end

 

so i want if i toggle the switch that only the last two arguments get changed to YES/TRUE how can i perform that? it doesnt seem to work? but i dont get any errors when i install it

Posted


- (void)leaveChat:(id)arg1 Silently:(BOOL)arg2 skipSave:(BOOL)arg3 {

        if (((NSNumber *)getOptionForKey(kChatRefresh, kGlobalUser)).boolValue) {

        arg2 = true;

        arg3 = true;

        return %orig(arg1,arg2,arg3);

       }

}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines