Jump to content

4 posts in this topic

Recommended Posts

Posted

Hey so I'm trying to fix an issue with lag for Kik but can't seem to figure it out, I'm trying to block all mom acsii characters but it only works if I have the literal string of characters and as "lag codes" come out everyday for Kik that's difficult so if possible, I want to block every message that has that certain character in it.. So an example would be

 

%hook HybridSmileyLabel

 

- (void)setText(id)arg1

{

[arg1 ifStringisEqualTo : @"a"] arg1 = @"SPAM";

return %orig;

}

%end

 

So I know the signs aren't in the right places but that should be give a clear example :3

Now what I want is everything with "a" in it to be blocked so

 

- (void)setText(id)arg1

{

[arg1 ifStringisEqualTo : @"abcedfg"] arg1 = @"SPAM";

return %orig;

}

%end

 

I want that to be blocked as well since it has the character "a" in it, hopefully that explains it :/? Thank you

Posted

if ([string rangeOfString:@"a"] == 0) {

NSLog(@"Spam");

}

else {

%orig;

}

Sweet I'll try that! What if the character is non ACSII? I try saving and compiling with atom and theos and I get the error along the lines of "non ACSII Character's not allowed"

Posted

Sweet I'll try that! What if the character is non ACSII? I try saving and compiling with atom and theos and I get the error along the lines of "non ACSII Character's not allowed"

I do NOT recommend this, but you can make the compiler ignore the error.

Just add this code to the top of your makefile:

 

GO_EASY_ON_ME=1

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