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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
/* */ package NET.worlds.network;
/* */
/* */ import NET.worlds.console.Console;
/* */ import NET.worlds.console.FriendsListPart;
/* */ import NET.worlds.console.MuteListPart;
/* */ import NET.worlds.scape.WorldScriptManager;
/* */ import java.text.MessageFormat;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class whisperCmd
/* */ extends textCmd
/* */ {
/* */ public static final byte WHISPERCMD = 17;
/* */
/* */ public whisperCmd()
/* */ {
/* 58 */ this._commandType = 17;
/* */ }
/* */
/* */ public whisperCmd(String who, String text) {
/* 62 */ super(text);
/* */
/* 64 */ WorldScriptManager.getInstance().onConversation(who, text);
/* */
/* 66 */ this._commandType = 17;
/* 67 */ this._objID = new ObjID(who);
/* */ }
/* */
/* 70 */ private static String rejectMsg = Console.message("not-whispers");
/* */
/* */ void process(WorldServer _serv) throws Exception
/* */ {
/* */ String name;
/* */ String name;
/* 76 */ if (this._senderID.longID() == null) {
/* 77 */ Object[] arguments = { new String(String.valueOf(this._senderID
/* 78 */ .shortID())) };
/* 79 */ name = MessageFormat.format(Console.message("Unknown-Name"),
/* 80 */ arguments);
/* */ } else {
/* 82 */ name = this._senderID.longID();
/* 83 */ if (MuteListPart.isMuted(_serv, name)) {
/* */ try {
/* 85 */ _serv.sendNetworkMsg(new whisperCmd(name,
/* 86 */ Console.message("have-you-muted")));
/* */ }
/* */ catch (InfiniteWaitException localInfiniteWaitException) {}catch (PacketTooLargeException localPacketTooLargeException) {}
/* */
/* 90 */ return;
/* */ }
/* 92 */ if ((!this._text.startsWith("&|+")) && (MuteListPart.isRejecting(_serv))) {
/* */ try {
/* 94 */ if (!this._text.equals(rejectMsg)) {
/* 95 */ Object[] arguments = { new String(name) };
/* 96 */ Console.println(MessageFormat.format(
/* 97 */ Console.message("You-rejected"), arguments));
/* 98 */ _serv.sendNetworkMsg(new whisperCmd(name, rejectMsg));
/* */ }
/* */ }
/* */ catch (InfiniteWaitException localInfiniteWaitException1) {}catch (PacketTooLargeException localPacketTooLargeException1) {}
/* */
/* 103 */ return;
/* */ }
/* */ }
/* */
/* 107 */ FriendsListPart.processWhisper(_serv, name, this._text);
/* 108 */ handleActionText(_serv, this._text, name, this._senderID);
/* */
/* 110 */ Console.printWhisper(name, FilthFilter.get().filter(this._text));
/* */ }
/* */
/* */
/* */ public String toString(WorldServer serv)
/* */ {
/* 116 */ return
/* 117 */ Console.message("WHISPER") + " " + this._senderID.toString(serv) + " --> " + this._objID.toString(serv) + ": " + this._text;
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\whisperCmd.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|