28
LINES
JavaX fragment (include)
1 | static void reportToChat(final S s) {
|
2 | reportToChat(s, false);
|
3 | }
|
4 |
|
5 | static void reportToChat(final S s, boolean silent) {
|
6 | Class javax = getJavaX();
|
7 | if (!_inCore()) {
|
8 | call(javax, "reportToChat", s, silent);
|
9 | ret;
|
10 | }
|
11 |
|
12 | if (s == null || s.length() == 0) return;
|
13 | if (!silent)
|
14 | print("reportToChat: " + quote(s));
|
15 | reportToChat_getChatThread().add(runnable {
|
16 | startChatServerIfNotUp();
|
17 | waitForChatServer();
|
18 | chatSend(s);
|
19 | });
|
20 | }
|
21 |
|
22 | static Q reportToChat_q;
|
23 |
|
24 | static Q reportToChat_getChatThread() {
|
25 | if (reportToChat_q == null)
|
26 | reportToChat_q = new Q("reportToChat", true);
|
27 | return reportToChat_q;
|
28 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
ID |
Author/Program |
Comment |
Date |
1086 | #1000604 (pitcher) | | 2015-09-12 16:40:14 |
add comment
Snippet ID: |
#1000935 |
Snippet name: |
reportToChat |
Eternal ID of this version: |
#1000935/3 |
Text MD5: |
49ad17ac01cf246d4aa69a2792f2bc68 |
Author: |
stefan |
Category: |
javax |
Type: |
JavaX fragment (include) |
Public (visible to everyone): |
Yes |
Archived (hidden from active list): |
No |
Created/modified: |
2017-06-20 16:42:09 |
Source code size: |
654 bytes / 28 lines |
Pitched / IR pitched: |
No / No |
Views / Downloads: |
1009 / 1255 |
Version history: |
2 change(s) |
Referenced in: |
[show references] |