-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path[proc,pm_filtertest].cs2
More file actions
44 lines (44 loc) · 964 Bytes
/
[proc,pm_filtertest].cs2
File metadata and controls
44 lines (44 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// 91
[proc,pm_filtertest](int $chattype0, string $string0, int $clock1, int $int2)(int)
def_int $int3 = ~script4487;
switch_int ($chattype0) {
case ^chattype_modprivatechat :
if ($clock1 < %varcint175) {
return(0);
}
if ($int2 = 2) {
return(0);
}
return(1);
case ^chattype_privatechat :
if ($clock1 < %varcint175) {
return(0);
}
if ($int2 = 2) {
return(0);
}
if (chat_getfilter_private = ^chatfilter_on) {
return(1);
}
if (chat_getfilter_private = ^chatfilter_friends & $int2 = 1) {
return(1);
}
return(0);
case ^chattype_loginlogoutnotification, ^chattype_privatechatout :
if ($clock1 < %varcint175) {
return(0);
}
if ($chattype0 = ^chattype_loginlogoutnotification) {
if ($int3 = 2) {
return(0);
} else if ($int3 = 0 & calc(clientclock - $clock1) >= 500) {
return(0);
}
}
if (chat_getfilter_private ! ^chatfilter_off) {
return(1);
}
return(0);
case default :
return(0);
}