-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,panetest].cs2
38 lines (38 loc) · 1.1 KB
/
[proc,panetest].cs2
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
// 193
[proc,panetest](int $chattype0, string $string0, int $int1)(int)
if (%varcint41 = 0) {
return(1);
}
if ($chattype0 = null) {
return(0);
}
switch_int (%varcint41) {
case 1 :
if (enum(int, boolean, enum_892, $chattype0) = true) {
return(1);
}
case 2 :
if ($chattype0 = ^chattype_modchat | $chattype0 = ^chattype_publicchat | $chattype0 = ^chattype_autotyper | $chattype0 = ^chattype_modautotyper) {
return(1);
}
case 3 :
if ($chattype0 = ^chattype_privatechat | $chattype0 = ^chattype_loginlogoutnotification | $chattype0 = ^chattype_privatechatout | $chattype0 = ^chattype_modprivatechat) {
return(1);
}
case 4 :
if ($chattype0 = ^chattype_friendschat | $chattype0 = ^chattype_friendschatnotification | $chattype0 = ^chattype_chalreq_friendschat) {
return(1);
}
case 5 :
switch_int ($chattype0) {
case 41, 44, 43, 46, 109, 110 :
return(1);
}
case 6 :
if ($chattype0 = ^chattype_tradereq | $chattype0 = ^chattype_chalreq_trade | $chattype0 = ^chattype_trade) {
return(1);
} else if (~trade_partner_check($chattype0, $string0, $int1) = 1) {
return(1);
}
}
return(0);