Christian Fraß commited on 2021-11-19 13:02:38
Zeige 1 geänderte Dateien mit 5 Einfügungen und 13 Löschungen.
... | ... |
@@ -97,13 +97,14 @@ async function execute(internal_request: type_internal_request, ip_address: stri |
97 | 97 |
internal_request.data["server"], |
98 | 98 |
internal_request.data["nickname"], |
99 | 99 |
{ |
100 |
+ "realName": "webirc", |
|
100 | 101 |
"userName": lib_sha256.get(ip_address).slice(0, 8), |
101 | 102 |
"channels": internal_request.data["channels"], |
102 | 103 |
"showErrors": true, |
103 | 104 |
"autoConnect": false, |
104 | 105 |
} |
105 | 106 |
); |
106 |
- const connection: type_connection = |
|
107 |
+ let connection: type_connection = |
|
107 | 108 |
{ |
108 | 109 |
"client": client, |
109 | 110 |
"events": [], |
... | ... |
@@ -118,12 +119,7 @@ async function execute(internal_request: type_internal_request, ip_address: stri |
118 | 119 |
({ |
119 | 120 |
"timestamp": get_timestamp(), |
120 | 121 |
"kind": "channel_message", |
121 |
- "data": |
|
122 |
- { |
|
123 |
- "from": from, |
|
124 |
- "to": to, |
|
125 |
- "message": message, |
|
126 |
- } |
|
122 |
+ "data": {"from": from, "to": to, "message": message} |
|
127 | 123 |
}); |
128 | 124 |
} |
129 | 125 |
); |
... | ... |
@@ -136,11 +132,7 @@ async function execute(internal_request: type_internal_request, ip_address: stri |
136 | 132 |
({ |
137 | 133 |
"timestamp": get_timestamp(), |
138 | 134 |
"kind": "private_message", |
139 |
- "data": |
|
140 |
- { |
|
141 |
- "from": from, |
|
142 |
- "message": message, |
|
143 |
- } |
|
135 |
+ "data": {"from": from, "message": message} |
|
144 | 136 |
}); |
145 | 137 |
} |
146 | 138 |
); |
... | ... |
@@ -193,7 +185,7 @@ async function execute(internal_request: type_internal_request, ip_address: stri |
193 | 185 |
return Promise.resolve<type_internal_response>(null); |
194 | 186 |
break; |
195 | 187 |
} |
196 |
- case "say": |
|
188 |
+ case "send": |
|
197 | 189 |
{ |
198 | 190 |
const connection: type_connection = get_connection(internal_request.id); |
199 | 191 |
connection.client.say(internal_request.data["channel"], internal_request.data["message"]); |
200 | 192 |