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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
|
= WeeChat ใชใฌใผใใญใใณใซ
:author: Sรฉbastien Helleu
:email: flashcode@flashtux.org
:lang: ja-jp
:toc: left
:toclevels: 3
:toc-title: ็ฎๆฌก
:sectnums:
:docinfo1:
็ฟป่จณ่
:
* Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>, 2014-2019
[[introduction]]
== ใฏใใใซ
ใใฎๆๆธใฏ WeeChat ใชใฌใผใใญใใณใซใซใคใใฆ่ฟฐในใใใฎใงใ: ใชใฌใผใใญใใณใซใจใฏใWeeChat
ใใผใฟใใฏใฉใคใขใณใใซไธญ็ถใใใใใฎใใฎใงใๅคใใฎๅ ดๅใฏใฉใคใขใณใใฏใชใขใผใใคใณใฟใผใใงใผในใๆใใพใใ
[[terminology]]
=== ็จ่ช
ใใฎๆๆธใงใฏไปฅไธใฎ็จ่ชใๅฉ็จใใพใ:
* _ใชใฌใผ_: ใใใฏ relay ใใฉใฐใคใณใๅใใ WeeChat ใๆใใ"ใตใผใ"
ใฎใใใซๆฏใ่ใใ_ใฏใฉใคใขใณใ_ ใใใฎๆฅ็ถใๅใไปใใพใ
* _ใฏใฉใคใขใณใ_: ใใใฏไปใฎใฝใใใฆใงใขใฎใใจใๆใใใใใใฏใผใฏใไปใใฆ _ใชใฌใผ_
ใซๆฅ็ถใใพใ; ๅคใใฎๅ ดๅใ_ใฏใฉใคใขใณใ_ ใฏใชใขใผใใคใณใฟใผใใงใผในใฎใใจใๆใใพใใ
[[network_diagram]]
=== ใใใใฏใผใฏๅณ
ไปฅไธใฎๅณใซ็คบใใใใซ _ใฏใฉใคใขใณใ_ ใฏ _ใชใฌใผ_ ใซๆฅ็ถใใฆใใพใ:
....
โโโโโโโโโโโโโโโโโโ ใฏใผใฏในใใผใทใงใณ
โโโโโโโโโโ โโโโโค ใฏใฉใคใขใณใ 1 โ (LinuxใWindowsใ
โ irc โโโโโ โโโโโโโโโโโโโคโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโ BSDใmacOS ...)
โโโโโโโโโโ โโโโข โ โโโโโโ โโโโโโโโโโโโโโโโโโ
...... โ WeeChat โ ใชใฌใผ โโโโโโโโโโค ใฏใฉใคใขใณใ 2 โ ๆบๅธฏใใใคใน
โโโโโโโโโโ โโโโข โ โโโโโโ โโโโโโโโโโโโโโโโโโ (AndroidใiPhone ...)
โ jabber โโโโโ โโโโโโโโโโโโโงโโโโโโโโโ โ ......
โโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโ
...... โโโโโค ใฏใฉใคใขใณใ N โ ใใฎไปใฎใใใคใน
โโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ใใใใฏใผใฏ ncurses ใชใฌใผ ใชใขใผใใคใณใฟใผใใงใผใน
ใตใผใ ใคใณใฟใผใใงใผใน ใใญใใณใซ
....
[NOTE]
ใใฎๆๆธใง่ฟฐในใๅ
จใฆใฎใฏใฉใคใขใณใใฏ _ใชใฌใผ_ ใใฉใฐใคใณใฎ _weechat_ ใใญใใณใซใไฝฟใฃใฆใใพใใใพใ
_ใชใฌใผ_ ใใฉใฐใคใณใฏ IRC ใฏใฉใคใขใณใใใใฎๆฅ็ถใๅใๅ
ฅใใใใจใใงใใพใใใใฎๅ ดๅ
_ใชใฌใผ_ ใใฉใฐใคใณใฏ _IRC ใใญใญใท_ ใฎใใใซๆฏ่ใใพใ (ใใฎๆๆธใงใฏ่ชฌๆใใพใใ)ใ
[[protocol_generalities]]
== ใใญใใณใซใฎไธ่ฌ็่ชฌๆ
* _ใชใฌใผ_ ใใฉใฐใคใณใฏๆฐใใๆฅ็ถใๅใๅ
ฅใใใใใซ IP/port ใใชใในใณใใ_ใฏใฉใคใขใณใ_
ใฏ TCP ใฝใฑใใใไฝฟใฃใฆ _ใชใฌใผ_ ใซๆฅ็ถใใพใใ
* _ใฏใฉใคใขใณใ_ ใฎๆฐใฏใชใใทใงใณ _relay.network.max_clients_ ใงๅถ้ใใใฆใใพใใ
* ใใใใใฎ _ใฏใฉใคใขใณใ_ ใ่ชๅไปฅๅคใฎใฏใฉใคใขใณใใจๅ่ชฟใใฆๅใใใจใฏใงใใพใใใ
* _ใฏใฉใคใขใณใ_ ใใ _ใชใฌใผ_ ใธใฎใกใใปใผใธใ _ใณใใณใ_
ใจๅผใณใใใใฏใใญในใๅฝขๅผ (ๆๅญๅ) ใง้ไฟกใใใพใใ
* _ใชใฌใผ_ ใใ _ใฏใฉใคใขใณใ_ ใธใฎใกใใปใผใธใ _ใกใใปใผใธ_
ใจๅผใณใใใใฏใใคใใชใใผใฟใจใใฆ้ไฟกใใใพใใ
[[commands]]
== ใณใใณใ (ใฏใฉใคใขใณใ โ ใชใฌใผ)
ใณใใณใใฎๆธๅผใฏไปฅไธใงใ:
----
(id) command arguments\n
----
ใใฃใผใซใใฏ:
* _id_: _ใชใฌใผ_ ใใใฎๅฟ็ญใซๅซใพใใไปปๆๆๅฎใฎใกใใปใผใธ่ญๅฅๅญ;
่ญๅฅๅญใฏๅฟ
ใๆฌๅผงใงๆฌใใใขใณใใผในใณใขใๆๅใซใคใใใฎใฏ็ฆๆญขใใใฆใใพใ
(ใขใณใใผในใณใขใๆๅใซใคใใฆใใ่ญๅฅๅญใฏ WeeChat _event_ ใกใใปใผใธ็จใซไบ็ดใใใฆใใพใ)
* _command_: ใณใใณใ (ไปฅไธใฎใใผใใซใๅ็
ง)
* _arguments_: ใณใใณใใซๅฏพใใไปปๆๆๅฎใฎๅผๆฐ
(่คๆฐใฎๅผๆฐใๆธกใๅ ดๅใฏ็ฉบ็ฝใงๅบๅใฃใฆใใ ใใ)ใ
ๅฉ็จๅฏ่ฝใชใณใใณใใฎใชในใ (่ฉณใใใฏๆฌกใฎ็ซ ใๅ็
ง):
[width="100%",cols="^3m,14",options="header"]
|===
| ใณใใณใ | ่ชฌๆ
// TRANSLATION MISSING
| handshake | Handshake: prepare client authentication and set options, before _init_ command.
| init | _ใชใฌใผ_ ๆฅ็ถใๅๆๅ
| hdata | _hdata_ ใ่ฆๆฑ
| info | _ใคใณใใฉ_ ใ่ฆๆฑ
| infolist | _ใคใณใใฉใชในใ_ ใ่ฆๆฑ
| nicklist | _ใใใฏใใผใ ใชในใ_ ใ่ฆๆฑ
| input | ใใใใกใซใใผใฟใ้ไฟก (ใใญในใใพใใฏใณใใณใ)
// TRANSLATION MISSING
| completion | Request completion of a string.
| sync | ใใใใกใๅๆ: ใใใใกใฎๆๆฐๆ
ๅ ฑใๅๅพ
| desync | ใใใใกใ้ๅๆ: ใใใใกใฎๆดๆฐใๆญขใใ
| quit | _ใชใฌใผ_ ใใๅๆญ
|===
// TRANSLATION MISSING
[[command_handshake]]
=== handshake
_WeeChat โฅ 2.9._
Perform an handshake between the client and WeeChat: this is required in most
cases to know the session settings and prepare the authentication with the
_init_ command.
Only one handshake is allowed before the _init_ command.
Syntax:
----
(id) handshake [<option>=<value>,[<option>=<value>,...]]
----
Arguments:
* _option_: one of following options:
** _password_hash_algo_: list of hash algorithms supported by the client
(separated by colons), allowed values are:
*** _plain_: plain text password (no hash)
*** _sha256_: password salted and hashed with SHA256 algorithm
*** _sha512_: password salted and hashed with SHA512 algorithm
*** _pbkdf2+sha256_: password salted and hashed with PBKDF2 algorithm (using SHA256 hash)
*** _pbkdf2+sha512_: password salted and hashed with PBKDF2 algorithm (using SHA512 hash)
** _compression_: compression type:
*** _zlib_: enable _zlib_ compression for messages sent by _relay_
(enabled by default if _relay_ supports _zlib_ compression)
*** _off_: disable compression
Notes about option _password_hash_algo_:
* If the option is not given (or if the _handshake_ command is not sent by the
client), _relay_ uses automatically _plain_ authentication (if allowed on
_relay_ side).
* _Relay_ chooses the more secure algorithm available on both client and
_relay_, by order of priority from first (most secure) to last used:
. _pbkdf2+sha512_
. _pbkdf2+sha256_
. _sha512_
. _sha256_
. _plain_
WeeChat replies with a hashtable containing the following keys and values:
* _password_hash_algo_: the password authentication negotiated: supported by
both the client and _relay_:
** (empty value): negotiation failed, password authentication is *NOT* possible;
in this case the connection with the client is immediately closed
** _plain_
** _sha256_
** _sha512_
** _pbkdf2+sha256_
** _pbkdf2+sha512_
* _password_hash_iterations_: number of iterations for hash
(for the PBKDF2 algorithm only)
* _totp_:
** _on_: Time-based One-Time Password (TOTP) is configured and expected
in the _init_ command
** _off_: Time-based One-Time Password (TOTP) is not enabled and not needed
in the _init_ command
* _nonce_: a buffer of unpredictable bytes, sent as hexadecimal, to prevent
replay attacks; if _password_hash_algo_ is a hash algorithm, the client must
compute the hash of password on this nonce, concatenated with a client nonce
and the user password (the _relay_ nonce + the client nonce is the salt used
in the password hash algorithm)
* _compression_: compression type:
** _zlib_: messages are compressed with _zlib_
** _off_: messages are not compressed
[TIP]
With WeeChat โค 2.8, the command _handshake_ is not implemented, WeeChat silently
ignores this command, even if it is sent before the _init_ command. +
So it is safe to send this command to any WeeChat version.
Examples:
* Nothing offered by the client, authentication password "plain" will be used
if allowed on relay side:
----
(handshake) handshake
----
Response:
[source,python]
----
id: 'handshake'
htb: {
'password_hash_algo': 'plain',
'password_hash_iterations': '100000',
'totp': 'on',
'nonce': '85B1EE00695A5B254E14F4885538DF0D',
'compression': 'zlib',
}
----
* Only "plain" is supported by the client:
----
(handshake) handshake password_hash_algo=plain
----
Response:
[source,python]
----
id: 'handshake'
htb: {
'password_hash_algo': 'plain',
'password_hash_iterations': '100000',
'totp': 'on',
'nonce': '85B1EE00695A5B254E14F4885538DF0D',
'compression': 'zlib',
}
----
* Only "plain", "sha256" and "pbkdf2+sha256" are supported by the client:
----
(handshake) handshake password_hash_algo=plain:sha256:pbkdf2+sha256
----
Response:
[source,python]
----
id: 'handshake'
htb: {
'password_hash_algo': 'pbkdf2+sha256',
'password_hash_iterations': '100000',
'totp': 'on',
'nonce': '85B1EE00695A5B254E14F4885538DF0D',
'compression': 'zlib',
}
----
The client can authenticate with this command (see <<command_init,init command>>),
the salt is the _relay_ nonce + client nonce ("A4B73207F5AAE4" in hexadecimal),
the password is "test" in this example:
----
init password_hash=pbkdf2+sha256:85b1ee00695a5b254e14f4885538df0da4b73207f5aae4:100000:ba7facc3edb89cd06ae810e29ced85980ff36de2bb596fcf513aaab626876440
----
* Only "sha256" and "sha512" are supported by the client, disable compression:
----
(handshake) handshake password_hash_algo=sha256:sha512,compression=off
----
Response:
[source,python]
----
id: 'handshake'
htb: {
'password_hash_algo': 'sha512',
'password_hash_iterations': '100000',
'totp': 'on',
'nonce': '85B1EE00695A5B254E14F4885538DF0D',
'compression': 'off',
}
----
[[command_init]]
=== init
// TRANSLATION MISSING
_Updated in versions 2.4, 2.8, 2.9._
// TRANSLATION MISSING
Authenticate with _relay_.
// TRANSLATION MISSING
This must be first command sent to _relay_ (only _handshake_ command can be sent
before _init_). +
If not sent, _relay_ will close connection on first command received (except
_handshake_), without warning.
ๆงๆ:
----
(id) init [<option>=<value>,[<option>=<value>,...]]
----
ๅผๆฐ:
* _option_: ไปฅไธใฎใใกใฎ 1 ใค:
** _password_: _ใชใฌใผ_ ใฎ่ช่จผ็จใในใฏใผใ
(WeeChat ใฎ _relay.network.password_ ใชใใทใงใณ)
// TRANSLATION MISSING
** _password_hash_: hash of password used to authenticate on _relay_
(option _relay.network.password_ in WeeChat), see below for the format
_(WeeChat ใใผใธใงใณ 2.8 ใงๅฉ็จๅฏ่ฝ)_
** _totp_: ใในใฏใผใใซๅ ใใไบ่ฆ็ด ่ช่จผใงๅฉ็จใใๆ้ใใผในใฎใฏใณใฟใคใ ใในใฏใผใ (TOTP)
(WeeChat ใฎ _relay.network.totp_secret_ ใชใใทใงใณ)
_(WeeChat ใใผใธใงใณ 2.4 ใงๅฉ็จๅฏ่ฝ)_
// TRANSLATION MISSING
** _compression_: ๅง็ธฎใฟใคใ (*deprecated* since version 2.9, it is kept
for compatibility reasons but should be sent in the
<<command_handshake,handshake command>>):
*** _zlib_: _ใชใฌใผ_ ใใๅไฟกใใใกใใปใผใธใซๅฏพใใฆ _zlib_ ๅง็ธฎใไฝฟใ
(_ใชใฌใผ_ ใ _zlib_ ๅง็ธฎใใตใใผใใใฆใใๅ ดๅใใใใฉใซใใงๆๅนๅใใใพใ)
*** _off_: ๅง็ธฎใไฝฟใใชใ
[NOTE]
WeeChat ใใผใธใงใณ 1.6 ไปฅไธใฎๅ ดๅใใณใณใใใจในใฑใผใใใใใจใง value ใซใณใณใใ่จญๅฎๅฏ่ฝใงใใไพใใฐ
"foo,bar" ใจใใใในใฏใผใใ้ไฟกใใใซใฏ `+init password=foo\,bar+` ใฎใใใซ่จญๅฎใใฆใใ ใใใ
// TRANSLATION MISSING
Format of hashed password is one of the following, where _hash_ is the hashed
password as hexadecimal:
* `+sha256:salt:hash+` with:
** _salt_: salt (hexadecimal), which must start with the server nonce,
concatenated to the client nonce
** _hash_: the hashed salt + password (hexadecimal)
* `+sha512:salt:hash+` with:
** _salt_: salt (hexadecimal), which must start with the server nonce,
concatenated to the client nonce
** _hash_: the hashed salt + password (hexadecimal)
* `+pbkdf2+sha256:salt:iterations:hash+` with:
** _salt_: salt (hexadecimal), which must start with the server nonce,
concatenated to the client nonce
** _iterations_: number of iterations
** _hash_: the hashed salt + password with SHA256 algorithm (hexadecimal)
* `+pbkdf2+sha512:salt:iterations:hash+` with:
** _salt_: salt (hexadecimal), which must start with the server nonce,
concatenated to the client nonce
** _iterations_: number of iterations
** _hash_: the hashed salt + password with SHA512 algorithm (hexadecimal)
[NOTE]
Hexadecimal strings can be lower or upper case, _relay_ can decode both.
// TRANSLATION MISSING
Examples:
* Initialize with password:
----
init password=mypass
----
* Initialize with commas in the password _(WeeChat โฅ 1.6)_:
----
init password=mypass\,with\,commas
----
* Initialize with password and TOTP _(WeeChat โฅ 2.4)_:
----
init password=mypass,totp=123456
----
* Initialize with hashed password "test" (SHA256: salt=relay nonce + client nonce)
_(WeeChat โฅ 2.9)_:
----
init password_hash=sha256:85b1ee00695a5b254e14f4885538df0da4b73207f5aae4:2c6ed12eb0109fca3aedc03bf03d9b6e804cd60a23e1731fd17794da423e21db
----
* Initialize with hashed password "test" (SHA512: salt=relay nonce + client nonce)
_(WeeChat โฅ 2.9)_:
----
init password_hash=sha512:85b1ee00695a5b254e14f4885538df0da4b73207f5aae4:0a1f0172a542916bd86e0cbceebc1c38ed791f6be246120452825f0d74ef1078c79e9812de8b0ab3dfaf598b6ca14522374ec6a8653a46df3f96a6b54ac1f0f8
----
* Initialize with hashed password "test" (PBKDF2: SHA256, salt=relay nonce + client nonce,
100000 iterations) _(WeeChat โฅ 2.9)_:
----
init password_hash=pbkdf2+sha256:85b1ee00695a5b254e14f4885538df0da4b73207f5aae4:100000:ba7facc3edb89cd06ae810e29ced85980ff36de2bb596fcf513aaab626876440
----
[[command_hdata]]
=== hdata
_hdata_ ใ่ฆๆฑใ
ๆงๆ:
----
(id) hdata <path> [<keys>]
----
ๅผๆฐ:
* _path_: hdata ใธใฎใในใๆธๅผ: "hdata:pointer/var/var/.../var"ใๆๅพใฎ
var ใซๅฏพๅฟใใ hdata ใ่ฟใใใพใ:
** _hdata_: hdata ใฎๅๅ
// TRANSLATION MISSING
** _pointer_: ใใคใณใฟ (eg: "0x1234abcd") ใพใใฏใชในใๅ (ไพ: "gui_buffers")
(็ชๅทใๅฏ่ฝใไปฅไธใๅ็
ง)
** _var_: ่ฆช hdata ใซๅซใพใใๅคๆฐๅ (ใในใง่จใ 1 ใคๅใฎๅๅ)
(็ชๅทใๅฏ่ฝใไปฅไธใๅ็
ง)
* _keys_: hdata ใง่ฟใใญใผใฎใณใณใๅบๅใใชในใ
(ๆๅฎใใชใใฃใๅ ดๅใๅ
จใฆใฎใญใผใ่ฟใใใพใใๅผทๅคงใช hdata ๆง้ ไฝใฎๅ ดๅๅ
จใฆใฎใญใผใ่ฟใใใจใฏใๅงใใใพใใ)
ใใคใณใฟใจๅคๆฐใฎๅพใซ็ชๅทใๆๅฎใใใใจใใงใใพใใๆธๅผใฏ
"(N)"ใๅฏ่ฝใชๅคใฏ:
* ๆญฃๆฐ: N ๅๆฌกใฎ่ฆ็ด ใธใฎๅๅพฉใ็นฐใ่ฟใ
* ่ฒ ๆฐ: N ๅๅใฎ่ฆ็ด ใธใฎๅๅพฉใ็นฐใ่ฟใ
* _*_: ๆๅพใฎ่ฆ็ด ใพใงใๆฌกใฎ่ฆ็ด ใธใฎๅๅพฉใ็นฐใ่ฟใ
[NOTE]
WeeChat ใใผใธใงใณ 1.6 ไปฅไธใงใฏใhdata ใธใฎใในใ็กๅนใพใใฏ NULL ใใคใณใฟใ่ฆใคใใฃใๅ ดๅใ็ฉบใฎ
hdata ใ่ฟใใใพใ (<<object_hdata,hdata ใชใใธใงใฏใ>>ใฎไพใๅ็
งใใฆใใ ใใ)ใ +
1.6 ใใใๅคใใใผใธใงใณใงใฏใไฝใ่ฟใใใพใใใ
// TRANSLATION MISSING
Examples:
* Request "number" and "full_name" of all buffers:
----
(hdata_buffers) hdata buffer:gui_buffers(*) number,full_name
----
Response:
[source,python]
----
id: 'hdata_buffers'
hda:
keys: {
'number': 'int',
'full_name': 'str',
}
path: ['buffer']
item 1:
__path: ['0x558d61ea3e60']
number: 1
full_name: 'core.weechat'
item 2:
__path: ['0x558d62840ea0']
number: 1
full_name: 'irc.server.libera'
item 3:
__path: ['0x558d62a9cea0']
number: 2
full_name: 'irc.libera.#weechat'
----
* Request all lines of first buffer:
----
(hdata_lines) hdata buffer:gui_buffers/own_lines/first_line(*)/data
----
Response:
[source,python]
----
id: 'hdata_lines'
hda:
keys: {
'buffer': 'ptr',
'y': 'int',
'date': 'tim',
'date_printed': 'tim',
'str_time': 'str',
'tags_count': 'int',
'tags_array': 'arr',
'displayed': 'chr',
'notify_level': 'chr',
'highlight': 'chr',
'refresh_needed': 'chr',
'prefix': 'str',
'prefix_length': 'int',
'message': 'str',
}
path: ['buffer', 'lines', 'line', 'line_data']
item 1:
__path: ['0x558d61ea3e60', '0x558d61ea40e0', '0x558d62920d80', '0x558d62abf040']
buffer: '0x558d61ea3e60'
y: -1
date: 1588404926
date_printed: 1588404926
str_time: 'F@0025209F@0024535F@0024026'
tags_count: 0
tags_array: []
displayed: 1
notify_level: 0
highlight: 0
refresh_needed: 0
prefix: ''
prefix_length: 0
message: 'this is the first line'
item 2:
__path: ['0x558d61ea3e60', '0x558d61ea40e0', '0x558d626779f0', '0x558d62af9700']
buffer: '0x558d61ea3e60'
y: -1
date: 1588404930
date_printed: 1588404930
str_time: 'F@0025209F@0024535F@0024030'
tags_count: 0
tags_array: []
displayed: 1
notify_level: 0
highlight: 0
refresh_needed: 0
prefix: ''
prefix_length: 0
message: 'this is the second line'
----
* Request the hotlist content:
----
(hdata_hotlist) hdata hotlist:gui_hotlist(*)
----
Response:
[source,python]
----
id: 'hdata_hotlist'
hda:
keys: {
'priority': 'int',
'creation_time.tv_sec': 'tim',
'creation_time.tv_usec': 'lon',
'buffer': 'ptr',
'count': 'arr',
'prev_hotlist': 'ptr',
'next_hotlist': 'ptr',
}
path: ['hotlist']
item 1:
__path: ['0x558d629601b0']
priority: 3
creation_time.tv_sec: 1588405398
creation_time.tv_usec: 355383
buffer: '0x558d62a9cea0'
count: [1, 1, 0, 1]
prev_hotlist: '0x0'
next_hotlist: '0x0'
----
[[command_info]]
=== info
_ใคใณใใฉ_ ใ่ฆๆฑใ
ๆงๆ:
----
(id) info <name> [<arguments>]
----
ๅผๆฐ:
* _name_: ่ชญใฟๅบใใคใณใใฉใฎๅๅ
* _arguments_: ๅผๆฐ (ไปปๆ)
// TRANSLATION MISSING
Examples:
* Request WeeChat version:
----
(info_version) info version
----
Response:
[source,python]
----
id: 'info_version'
inf: ('version', '2.9-dev')
----
* Request WeeChat version as number:
----
(info_version_number) info version_number
----
Response:
[source,python]
----
id: 'info_version_number'
inf: ('version_number', '34144256')
----
* Request WeeChat directory:
----
(info_weechat_config_dir) info weechat_config_dir
----
Response:
[source,python]
----
id: 'info_weechat_config_dir'
inf: ('weechat_config_dir', '/home/user/.config/weechat')
----
[[command_infolist]]
=== infolist
_ใคใณใใฉใชในใ_ ใ่ฆๆฑใ
[IMPORTANT]
ใคใณใใฉใชในใใฎๅ
ๅฎนใฏๅฎ้ใฎใใผใฟใฎ่ค่ฃฝใงใใๅฏ่ฝใช้ใ <<command_hdata,hdata>>
ใณใใณใใไฝฟใฃใฆใใ ใใใใใฎใณใใณใใฏใใผใฟใ็ดๆฅ่ชญใฟๅบใใใจใๅฏ่ฝใงใ
(้ซ้ใ็ใกใขใชใใกใใปใผใธใง่ฟใใชใใธใงใฏใใฎใตใคใบใๅฐใใใงใ)ใ
ๆงๆ:
----
(id) infolist <name> [<pointer> [<arguments>]]
----
ๅผๆฐ:
* _name_: ๅๅพใใใคใณใใฉใชในใใฎๅๅ
* _pointer_: ใใคใณใฟ (ไปปๆ)
* _arguments_: ๅผๆฐ (ไปปๆ)
// TRANSLATION MISSING
Examples:
* Request infolist "buffer":
----
(infolist_buffer) infolist buffer
----
Response:
[source,python]
----
id: 'infolist_buffer'
inl:
name: buffer
item 1:
pointer: '0x558d61ea3e60'
current_buffer: 1
plugin: '0x0'
plugin_name: 'core'
number: 1
layout_number: 1
layout_number_merge_order: 0
name: 'weechat'
full_name: 'core.weechat'
old_full_name: None
short_name: 'weechat'
type: 0
notify: 3
num_displayed: 1
active: 1
hidden: 0
zoomed: 0
print_hooks_enabled: 1
day_change: 1
clear: 1
filter: 1
closing: 0
first_line_not_read: 0
lines_hidden: 0
prefix_max_length: 0
time_for_each_line: 1
nicklist_case_sensitive: 0
nicklist_display_groups: 1
nicklist_max_length: 0
nicklist_count: 0
nicklist_groups_count: 0
nicklist_nicks_count: 0
nicklist_visible_count: 0
title: 'WeeChat 2.9-dev (C) 2003-2020 - https://weechat.org/'
input: 1
input_get_unknown_commands: 0
input_get_empty: 0
input_multiline: 0
input_buffer: ''
input_buffer_alloc: 256
input_buffer_size: 0
input_buffer_length: 0
input_buffer_pos: 0
input_buffer_1st_display: 0
num_history: 0
text_search: 0
text_search_exact: 0
text_search_regex: 0
text_search_regex_compiled: '0x0'
text_search_where: 0
text_search_found: 0
text_search_input: None
highlight_words: None
highlight_regex: None
highlight_regex_compiled: '0x0'
highlight_tags_restrict: None
highlight_tags: None
hotlist_max_level_nicks: None
keys_count: 0
localvar_name_00000: 'plugin'
localvar_value_00000: 'core'
localvar_name_00001: 'name'
localvar_value_00001: 'weechat'
----
* Request infolist "window":
----
(infolist_window) infolist window
----
Response:
[source,python]
----
id: 'infolist_window'
inl:
name: window
item 1:
pointer: '0x558d61ddc800'
current_window: 1
number: 1
x: 14
y: 0
width: 259
height: 71
width_pct: 100
height_pct: 100
chat_x: 14
chat_y: 1
chat_width: 259
chat_height: 68
buffer: '0x558d61ea3e60'
start_line_y: 0
----
[[command_nicklist]]
=== nicklist
1 ใคใพใใฏๅ
จใฆใฎใใใใกใใ _ใใใฏใใผใ ใชในใ_ ใ่ฆๆฑใ
ๆงๆ:
----
(id) nicklist [<buffer>]
----
ๅผๆฐ:
// TRANSLATION MISSING
* _buffer_: ใใคใณใฟ (eg: "0x1234abcd") ใพใใฏใใใใกใฎๅฎๅ
จใชๅๅ (ไพ:
_core.weechat_ ใพใใฏ _irc.libera.#weechat_)
// TRANSLATION MISSING
Examples:
* Request nicklist for all buffers:
----
(nicklist_all) nicklist
----
Response:
[source,python]
----
id: 'nicklist_all'
hda:
keys: {
'group': 'chr',
'visible': 'chr',
'level': 'int',
'name': 'str',
'color': 'str',
'prefix': 'str',
'prefix_color': 'str',
}
path: ['buffer', 'nicklist_item']
item 1:
__path: ['0x558d61ea3e60', '0x558d61ea4120']
group: 1
visible: 0
level: 0
name: 'root'
color: None
prefix: None
prefix_color: None
item 2:
__path: ['0x558d62840ea0', '0x558d61e75f90']
group: 1
visible: 0
level: 0
name: 'root'
color: None
prefix: None
prefix_color: None
item 3:
__path: ['0x558d62a9cea0', '0x558d62abf2e0']
group: 1
visible: 0
level: 0
name: 'root'
color: None
prefix: None
prefix_color: None
item 4:
__path: ['0x558d62a9cea0', '0x558d62afb9d0']
group: 1
visible: 1
level: 1
name: '000|o'
color: 'weechat.color.nicklist_group'
prefix: None
prefix_color: None
item 5:
__path: ['0x558d62a9cea0', '0x558d62aff930']
group: 0
visible: 1
level: 0
name: 'FlashCode'
color: 'weechat.color.chat_nick_self'
prefix: '@'
prefix_color: 'lightgreen'
item 6:
__path: ['0x558d62a9cea0', '0x558d62af9930']
group: 1
visible: 1
level: 1
name: '001|v'
color: 'weechat.color.nicklist_group'
prefix: None
prefix_color: None
item 7:
__path: ['0x558d62a9cea0', '0x558d62afc510']
group: 1
visible: 1
level: 1
name: '999|...'
color: 'weechat.color.nicklist_group'
prefix: None
prefix_color: None
item 8:
__path: ['0x558d62a9cea0', '0x558d6292c290']
group: 0
visible: 1
level: 0
name: 'flashy'
color: '142'
prefix: ' '
prefix_color: 'lightblue'
item 9:
__path: ['0x558d62914680', '0x558d62afc4b0']
group: 1
visible: 0
level: 0
name: 'root'
color: None
prefix: None
prefix_color: None
----
* Request nicklist for buffer "irc.libera.#weechat":
----
(nicklist_weechat) nicklist irc.libera.#weechat
----
Response:
[source,python]
----
id: 'nicklist_weechat'
hda:
keys: {
'group': 'chr',
'visible': 'chr',
'level': 'int',
'name': 'str',
'color': 'str',
'prefix': 'str',
'prefix_color': 'str',
}
path: ['buffer', 'nicklist_item']
item 1:
__path: ['0x558d62a9cea0', '0x558d62abf2e0']
group: 1
visible: 0
level: 0
name: 'root'
color: None
prefix: None
prefix_color: None
item 2:
__path: ['0x558d62a9cea0', '0x558d62afb9d0']
group: 1
visible: 1
level: 1
name: '000|o'
color: 'weechat.color.nicklist_group'
prefix: None
prefix_color: None
item 3:
__path: ['0x558d62a9cea0', '0x558d62aff930']
group: 0
visible: 1
level: 0
name: 'FlashCode'
color: 'weechat.color.chat_nick_self'
prefix: '@'
prefix_color: 'lightgreen'
item 4:
__path: ['0x558d62a9cea0', '0x558d62af9930']
group: 1
visible: 1
level: 1
name: '001|v'
color: 'weechat.color.nicklist_group'
prefix: None
prefix_color: None
item 5:
__path: ['0x558d62a9cea0', '0x558d62afc510']
group: 1
visible: 1
level: 1
name: '999|...'
color: 'weechat.color.nicklist_group'
prefix: None
prefix_color: None
item 6:
__path: ['0x558d62a9cea0', '0x558d6292c290']
group: 0
visible: 1
level: 0
name: 'flashy'
color: '142'
prefix: ' '
prefix_color: 'lightblue'
----
[[command_input]]
=== input
ใใใใกใซใใผใฟใ้ไฟกใ
ๆงๆ:
----
(id) input <buffer> <data>
----
ๅผๆฐ:
// TRANSLATION MISSING
* _buffer_: ใใคใณใฟ (eg: "0x1234abcd") ใพใใฏใใใใกใฎๅฎๅ
จใชๅๅ (ไพ:
_core.weechat_ ใพใใฏ _irc.libera.#weechat_)
* _data_: ใใใใกใซ้ไฟกใใใใผใฟ: `/`
ใงๅงใพใๅ ดๅใใใใใกๅ
ใงใณใใณใใจใใฆๅฎ่กใใใพใใใใไปฅๅคใฎๅ ดๅใใใญในใใฏใใใใกใฎๅ
ฅๅใจใใฆ้ไฟกใใใพใใ
Examples:
* Send command "/help filter" on WeeChat core bufer:
----
input core.weechat /help filter
----
* Send message "hello!" to #weechat channel:
----
input irc.libera.#weechat hello!
----
// TRANSLATION MISSING
[[command_completion]]
=== completion
_WeeChat โฅ 2.9._
Request completion of a string: list of possible words at a given position in
a string for a given buffer.
ๆงๆ:
----
(id) completion <buffer> <position> [<data>]
----
ๅผๆฐ:
// TRANSLATION MISSING
* _buffer_: pointer (eg: "0x1234abcd") or full name of buffer (for example:
_core.weechat_ or _irc.libera.#weechat_)
* _position_: position for completion in string (starts to 0);
if the value is -1, the position is the length of _data_ (so the completion
is made at the end of _data_)
* _data_: the input string; if not given, completion is performed on an empty
string
WeeChat replies with a hdata:
[width="100%",cols="3m,2,10",options="header"]
|===
| Name | Type | Description
| context | string | Completion context: "null" (no completion), "command", "command_arg", "auto".
| base_word | string | The base word used for completion.
| pos_start | integer | Index of first char to replace (starts to 0).
| pos_end | integer | Index of last char to replace (starts to 0).
| add_space | integer | 1 if a space must be added after words, 0 otherwise.
| list | array of strings | List of words found; empty if nothing was found to complete at asked position.
|===
[NOTE]
In case of error, for example invalid buffer or internal error on WeeChat side,
an empty hdata is returned.
Examples:
* Completion of a command argument:
----
(completion_help) completion core.weechat -1 /help fi
----
Response:
[source,python]
----
id: 'completion_help'
hda:
keys: {
'context': 'str',
'base_word': 'str',
'pos_start': 'int',
'pos_end': 'int',
'add_space': 'int',
'list': 'arr',
}
path: ['completion']
item 1:
__path: ['0x55d0ccc842c0']
context: 'command_arg'
base_word: 'fi'
pos_start: 6
pos_end: 7
add_space: 0
list: [
'fifo',
'fifo.file.enabled',
'fifo.file.path',
'filter',
]
----
* Completion of a command in the middle of a word:
----
(completion_query) completion core.weechat 5 /quernick
----
Response:
[source,python]
----
id: 'completion_query'
hda:
keys: {
'context': 'str',
'base_word': 'str',
'pos_start': 'int',
'pos_end': 'int',
'add_space': 'int',
'list': 'arr',
}
path: ['completion']
item 1:
__path: ['0x55d0ccc88470']
context: 'command'
base_word: 'quer'
pos_start: 1
pos_end: 4
add_space: 1
list: ['query']
----
* Nothing to complete:
----
(completion_abcdefghijkl) completion core.weechat -1 abcdefghijkl
----
Response:
[source,python]
----
id: 'completion_abcdefghijkl'
hda:
keys: {
'context': 'str',
'base_word': 'str',
'pos_start': 'int',
'pos_end': 'int',
'add_space': 'int',
'list': 'arr',
}
path: ['completion']
item 1:
__path: ['0x55d0ccc88470']
context: 'auto'
base_word: 'abcdefghijkl'
pos_start: 0
pos_end: 11
add_space: 1
list: []
----
* Completion on an invalid buffer:
----
(completion_help) completion buffer.does.not.exist -1 /help fi
----
Response:
[source,python]
----
id: 'completion_help'
hda:
keys: {}
path: ['completion']
----
[[command_sync]]
=== sync
_WeeChat ใใผใธใงใณ 0.4.1 ใงๆดๆฐใ_
ๆดๆฐใๅๅพใใฆ 1 ใคใพใใฏ่คๆฐใฎใใใใกใๅๆใ
[IMPORTANT]
ใใใใกใฎใใผใฟ (่กใ...)
ใ่ฆๆฑใใ็ดๅพใซใใฎใณใใณใใ้ไฟกใใใใจใใๅงใใใพใใ1
ใคใฎใกใใปใผใธใฎไธญใซใใฎใณใใณใใๅซใใ (ๆน่กๆๅญ "\n" ใงๅบๅใ) ใใจใงๅๆใซ้ไฟกใงใใพใใ
ๆงๆ:
----
(id) sync [<buffer>[,<buffer>...] <option>[,<option>...]]
----
ๅผๆฐ:
// TRANSLATION MISSING
* _buffer_: ใใคใณใฟ (eg: "0x1234abcd") ใพใใฏใใใใกใฎๅฎๅ
จใชๅๅ (ไพ:
_core.weechat_ ใพใใฏ _irc.libera.#weechat_);
ๅ
จใฆใฎใใใใกใๆๅฎใใใซใฏ "*" ใไฝฟใฃใฆใใ ใใ
* _options_: ไปฅไธใซๆใใใญใผใฏใผใใใณใณใๅบๅใ ("*" ใซๅฏพใใใใใฉใซใใฏ
_buffers,upgrade,buffer,nicklist_ใใใใใกใซๅฏพใใใใใฉใซใใฏ _buffer,nicklist_):
** _buffers_: ใใใใกใซ้ขใใใทใฐใใซใๅใๅใ
(ใชใผใใณ/ใฏใญใผใบใ็งปๅใใชใใผใ ใใใผใธ/ใขใณใใผใธใ้ ใ/้ ใใชใ); ใใใฏๅๅใ "*" ใฎๅ ดๅใฎใฟๅฉ็จๅฏ่ฝ
_(WeeChat ใใผใธใงใณ 0.4.1 ไปฅไธใงๅฉ็จๅฏ)_
** _upgrade_: WeeChat ใขใใใฐใฌใผใใซ้ขใใใทใฐใใซใๅไฟก (ใขใใใฐใฌใผใใใขใใใฐใฌใผใใฎ็ตไบ);
ๅๅใ "*" ใฎใใใใกใซๅฏพใใฆใฎใฟๅฉ็จๅฏ่ฝ
_(WeeChat ใใผใธใงใณ 0.4.1 ไปฅไธใงๅฉ็จๅฏ)_
** _buffer_: ใใใใกใซ้ขใใใทใฐใใซใๅไฟก
(ๆฐใใ่กใๅใฎๅคๆดใใฟใคใใซใฎๅคๆดใใญใผใซใซๅคๆฐใฎ่ฟฝๅ /ๅ้คใ_buffers_
ใจๅใใใใใกใซ้ขใใใทใฐใใซ) _(WeeChat ใใผใธใงใณ 0.4.1 ใงๆดๆฐ)_
** _nicklist_: ๅคๆดๅพใซใใใฏใใผใ ใชในใใๅไฟก
// TRANSLATION MISSING
Examples:
* Synchronize all buffers with nicklist (the 3 commands are equivalent,
but the first one is recommended for compatibility with future versions):
----
sync
sync *
sync * buffers,upgrade,buffer,nicklist
----
* Synchronize WeeChat core buffer:
----
sync core.buffer
----
* Synchronize #weechat channel, without nicklist:
----
sync irc.libera.#weechat buffer
----
* Get general signals + all signals for #weechat channel:
----
sync * buffers,upgrade
sync irc.libera.#weechat
----
[[command_desync]]
=== desync
_WeeChat ใใผใธใงใณ 0.4.1 ใงๆดๆฐใ_
ๆดๆฐใไธญๆญขใใฆ 1 ใคใพใใฏ่คๆฐใฎใใใใกใฎๅๆใไธญๆญขใ
[NOTE]
ใใใใกใฎ _ใชใใทใงใณ_
ใๅ้คใใพใใใใใใกใซๅฏพใใไธ้จใฎใชใใทใงใณใใพใ ๆๅนใชๅ ดๅใใฏใฉใคใขใณใใฏใใใใกใซๅฏพใใใขใใใใผใใๅใๅใใพใใ
ๆงๆ:
----
(id) desync [<buffer>[,<buffer>...] <option>[,<option>...]]
----
ๅผๆฐ:
// TRANSLATION MISSING
* _buffer_: ใใคใณใฟ (eg: "0x1234abcd") ใพใใฏใใใใกใฎๅฎๅ
จใชๅๅ (ไพ:
_core.weechat_ ใพใใฏ _irc.libera.#weechat_);
ๅ
จใฆใฎใใใใกใๆๅฎใใใซใฏ "*" ใไฝฟใฃใฆใใ ใใ
* _options_: ไปฅไธใซๆใใใญใผใฏใผใใใณใณใๅบๅใ ("*" ใซๅฏพใใใใใฉใซใใฏ
_buffers,upgrade,buffer,nicklist_ใใใใใกใซๅฏพใใใใใฉใซใใฏ _buffer,nicklist_):
ๅคใซ้ขใใ่ฉณใใๆ
ๅ ฑใฏ <<command_sync,sync ใณใใณใ>>ใๅ็
งใใฆใใ ใใ
[NOTE]
buffer ใซ "*" ใๆๅฎใใๅ ดๅใ(ๅๅใไฝฟใฃใฆ) ๅๆใใใฆใใไปใฎใใใใกใฏๅๆ็ถๆ
ใไฟๅญใใใพใใ +
ใใฎใใ "sync *"ใ"sync irc.libera.#weechat"ใ"desync *" ใฎ้ ใซ้ไฟกใใๅ ดๅใWeeChat
ใฏ #weechat ใใฃใณใใซใซๅฏพใใใขใใใใผใใ้ไฟกใ็ถใใพใ
(ใขใใใใผใใๆญขใใใซใฏใๆ็คบใใฆใใใไธญๆญขใใชใใใฐใใใพใใ)ใ
// TRANSLATION MISSING
Examples:
* Desynchronize all buffers (the 3 commands are equivalent, but the first one
is recommended for compatibility with future versions):
----
desync
desync *
desync * buffers,upgrade,buffer,nicklist
----
* Desynchronize nicklist for #weechat channel (keep buffer updates):
----
desync irc.libera.#weechat nicklist
----
* Desynchronize #weechat channel:
----
desync irc.libera.#weechat
----
[[command_test]]
=== test
ใในใใณใใณใ: WeeChat ใฏๆงใ
ใช็จฎ้กใฎใชใใธใงใฏใใ่ฟใใพใใ
ใใฎใณใใณใใฏ WeeChat
ใ่ฟใใใคใใชใชใใธใงใฏใใฎใใณใผใใฃใณใฐใใในใใใ้ใซไพฟๅฉใงใใ
ๆงๆ:
----
(id) test
----
่ฟใใใใชใใธใงใฏใ (ไปฅไธใฎ้ ็ช):
[width="100%",cols="^3,3m,5m",options="header"]
|===
| ๅ | ๅ (ใกใใปใผใธไธญ) | ๅค
| char | chr | 65 ("A")
| integer | int | 123456
| integer | int | -123456
| long | lon | 1234567890
| long | lon | -1234567890
| string | str | "a string"
| string | str | ""
| string | str | NULL
| buffer | buf | "buffer"
| buffer | buf | NULL
| pointer | ptr | 0x1234abcd
| pointer | ptr | NULL
| time | tim | 1321993456
| string ใฎ้
ๅ | arr str | [ "abc", "de" ]
| integer ใฎ้
ๅ | arr int | [ 123, 456, 789 ]
|===
[IMPORTANT]
ใใฎใณใใณใใ่ฟใใใใคใณใฟๅคใ็ตถๅฏพใซไฝฟใฃใฆใฏใใใพใใใใใคใณใฟๅคใฏ็กๅนใงใใใใฎใณใใณใใ
WeeChat
ใ่ฟใใกใใปใผใธใฎใใณใผใใฃใณใฐใใในใใใๅ ดๅไปฅๅคใซไฝฟใใชใใงใใ ใใใ
ไพ:
----
(test) test
----
// TRANSLATION MISSING
Response:
----
id: 'test'
chr: 65
int: 123456
int: -123456
lon: 1234567890
lon: -1234567890
str: 'a string'
str: ''
str: None
buf: 'buffer'
buf: None
ptr: '0x1234abcd'
ptr: '0x0'
tim: 1321993456
arr: ['abc', 'de']
arr: [123, 456, 789]
----
[[command_ping]]
=== ping
_WeeChat ใใผใธใงใณ 0.4.2 ไปฅไธใงๅฉ็จๅฏใ_
WeeChat ใซใกใใปใผใธ "_pong" ใจๅใๅผๆฐใๆใค่ฟไฟก ping ใ้ไฟกใ
ใใฎใณใใณใใฏ WeeChat
ใจใฎๆฅ็ถใใพใ ไฟๆใใใใใใจใฎ็ขบ่ชใจๅฟ็ญๆ้ใ่จๆธฌใใๅ ดๅใซไพฟๅฉใงใใ
ๆงๆ:
----
(id) ping [<arguments>]
----
ไพ:
----
ping 1370802127000
----
// TRANSLATION MISSING
Response:
----
id:'_pong'
str: '1370802127000'
----
[[command_quit]]
=== quit
_ใชใฌใผ_ ใใๅๆญใ
ๆงๆ:
----
(id) quit
----
ไพ:
----
quit
----
[[messages]]
== ใกใใปใผใธ (ใชใฌใผ โ ใฏใฉใคใขใณใ)
ใกใใปใผใธใฏไปฅไธใฎๆธๅผใงใใคใใชใใผใฟใจใใฆ้ไฟกใใใพใ (ใตใคใบใฏใใคใๅไฝ):
....
โโโโโโโโโโฅโโโโโโโโโโโโโโฅโโโโโโโโโโฅโโโโโโโโโฌโโโโโโโโโโโฅโโโโโโโโฅโโโโโโโโโฌโโโโโโโโโโโ
โ length โ compression โ id โ type 1 โ object 1 โ ... โ type N โ object N โ
โโโโโโโโโโจโโโโโโโโโโโโโโจโโโโโโโโโโจโโโโโโโโโดโโโโโโโโโโโจโโโโโโโโจโโโโโโโโโดโโโโโโโโโโโ
โโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโ โโโโโโโโ โโโโโโโโโโ โโโโโโโโ โโโโโโโโโโ
4 1 4 + str 3 ?? 3 ??
โโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ใใใ (5) ๅง็ธฎใใใใใผใฟ (??)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
'length' ใใคใ
....
* _length_ (็ฌฆๅทใชใๆดๆฐๅใ4 ใใคใ): ใกใใปใผใธๅ
จไฝใฎใใคใๆฐ
(ใใฎใใฃใผใซใใๅซใ)
* _compression_ (ใใคใๅ): ใใฉใฐ:
** _0x00_: ใใไปฅ้ใฎใใผใฟใฏๅง็ธฎใใใฆใใพใใ
** _0x01_: ใใไปฅ้ใฎใใผใฟใฏ _zlib_ ใงๅง็ธฎใใใฆใใพใ
* _id_ (ๆๅญๅๅใ4 ใใคใ + ๅ
ๅฎน): ใฏใฉใคใขใณใใ้ไฟกใใ่ญๅฅๅญ (ใณใใณใๅใฎๅใซใคใใใใ);
ใณใใณใใซ่ญๅฅๅญใๅซใพใใชใๅ ดๅใฏ็ฉบๆๅญๅใงใๅฏ
(ๅ
ๅฎนใๅซใพใชใ้ทใใผใญใฎๆๅญๅ)
* _type_ (3 ๆๅญ): ๅใฎ็จฎ้ก: 3 ๆๅญ (ไปฅไธใฎ่กจใๅ็
ง)
* _object_: ใชใใธใงใฏใ (ไปฅไธใฎ่กจใๅ็
ง)
[[message_compression]]
=== ๅง็ธฎ
_compression_ ใใฉใฐใ 0x01 ใฎๅ ดๅใใใไปฅ้ใฎ *ๅ
จใฆใฎ* ใใผใฟใฏ _zlib_
ใงๅง็ธฎใใใฆใใใใใๅฆ็ๅใซๅฟ
ใๅฑ้ใใฆใใ ใใใ
[[message_identifier]]
=== ่ญๅฅๅญ
่ญๅฅๅญ (_id_) ใซใฏ 2 ็จฎ้กใใใพใ:
* _ใฏใฉใคใขใณใ_ ใ้ไฟกใใ _id_: _ใชใฌใผ_ ใฏ _id_ ใๅซใๅไฟกใกใใปใผใธใซๅฏพใใฆๅใ _id_ ใไปใใฆๅฟ็ญใใพใใ
* ใคใใณใใฎ _id_: ไธ้จใฎใคใใณใใงใ_ใชใฌใผ_ ใฏ _ใฏใฉใคใขใณใ_ ใซๅใใฆ็นๅฅใชใใขใณใใผในใณใขใงๅงใพใใ_id_
ใๅซใใกใใปใผใธใ้ไฟกใใพใ (ไปฅไธใฎ่กจใๅ็
ง)
WeeChat ใฎไบ็ด่ญๅฅๅญ:
[width="100%",cols="5m,5,3,4,7",options="header"]
|===
| ่ญๅฅๅญ | _sync_ ใงๅไฟก | ้ไฟกใใใใใผใฟ |
่ชฌๆ | ๆจๅฅจใใใฏใฉใคใขใณใใฎๆๅ
| _buffer_opened | buffers / buffer | hdata: buffer |
ใใใใกใฎใชใผใใณ | ใใใใกใ้ใ
| _buffer_type_changed | buffers / buffer | hdata: buffer |
ใใใใกใฎ็จฎ้กๅคๆด | ใใใใกใฎ็จฎ้กใๅคๆด
| _buffer_moved | buffers / buffer | hdata: buffer |
ใใใใกใฎ็งปๅ | ใใใใกใ็งปๅ
| _buffer_merged | buffers / buffer | hdata: buffer |
ใใใใกใฎใใผใธ | ใใใใกใใใผใธ
| _buffer_unmerged | buffers / buffer | hdata: buffer |
ใใใใกใฎใขใณใใผใธ | ใใใใกใใขใณใใผใธ
| _buffer_hidden | buffers / buffer | hdata: buffer |
ใใใใกใ้ ใ | ใใใใกใ้ ใ
| _buffer_unhidden | buffers / buffer | hdata: buffer |
ใใใใกใ้ ใใใจใๆญขใใ | ใใใใกใ้ ใใใจใๆญขใใ
| _buffer_renamed | buffers / buffer | hdata: buffer |
ใใใใกใฎใชใใผใ | ใใใใกใใชใใผใ
| _buffer_title_changed | buffers / buffer | hdata: buffer |
ใใใใกใฎใฟใคใใซๅคๆด | ใใใใกใฎใฟใคใใซใๅคๆด
| _buffer_localvar_added | buffers / buffer | hdata: buffer |
ใญใผใซใซๅคๆฐใฎ่ฟฝๅ | ใใใใกใซๅฏพใใใญใผใซใซๅคๆฐใ่ฟฝๅ
| _buffer_localvar_changed | buffers / buffer | hdata: buffer |
ใญใผใซใซๅคๆฐใฎๅคๆด | ใใใใกใซๅฏพใใใญใผใซใซๅคๆฐใๅคๆด
| _buffer_localvar_removed | buffers / buffer | hdata: buffer |
ใญใผใซใซๅคๆฐใๅ้ค | ใใใใกใใใญใผใซใซๅคๆฐใๅ้ค
| _buffer_closing | buffers / buffer | hdata: buffer |
ใใใใกใฎใฏใญใผใบ | ใใใใกใ้ใใ
| _buffer_cleared | buffer | hdata: buffer |
ใใใใกใฎใฏใชใข | ใใใใกใใฏใชใข
| _buffer_line_added | buffer | hdata: line |
ใใใใกใธใฎ่ก่ฟฝๅ | ใใใใกใซ่กใ่กจ็คบ
| _nicklist | nicklist | hdata: nicklist_item |
ใใใใกใฎใใใฏใใผใ ใชในใ | ใใใฏใใผใ ใชในใใ็ฝฎๆ
| _nicklist_diff | nicklist | hdata: nicklist_item |
ใใใใกใซๅฏพใใใใใฏใใผใ ใฎๅทฎๅ | ใใใฏใใผใ ใชในใใๆดๆฐ
| _pong | (ๅธธใซ) | string: ping arguments |
"ping" ใซๅฏพใใๅฟ็ญ | ๅฟ็ญๆ้ใฎๆธฌๅฎ
| _upgrade | upgrade | (็ฉบ) |
WeeChat ใฎใขใใใฐใฌใผใไธญ | WeeChat ใจใฎๅๆใไธญๆญข (ใพใใฏๅๆญ)
| _upgrade_ended | upgrade | (็ฉบ) |
WeeChat ใฎใขใใใฐใฌใผใ็ตไบ | WeeChat ใจใฎๅๆใใใณๅๅๆ
|===
[[message_buffer_opened]]
==== _buffer_opened
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_opened"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
| short_name | string | ็ญใๅๅ (ไพ: _#weechat_)
| nicklist | integer | ใใใใกใใใใฏใใผใ ใชในใใๆใคๅ ดๅ 1ใใใไปฅๅคใฏ 0
| title | string | ใใใใกใฎใฟใคใใซ
| local_variables | hashtable | ใญใผใซใซๅคๆฐ
| prev_buffer | pointer | ๅใฎใใใใกใธใฎใใคใณใฟ
| next_buffer | pointer | ๆฌกใฎใใใใกใธใฎใใคใณใฟ
|===
ไพ: libera ใฎ _#weechat_ ใใฃใณใใซใซๅๅ ใๆฐใใใใใใกใฏ
_irc.libera.#weechat_:
[source,python]
----
id: '_buffer_opened'
hda:
keys: {
'number': 'int',
'full_name': 'str',
'short_name': 'str',
'nicklist': 'int',
'title': 'str',
'local_variables': 'htb',
'prev_buffer': 'ptr',
'next_buffer': 'ptr',
}
path: ['buffer']
item 1:
__path: ['0x35a8a60']
number: 3
full_name: 'irc.libera.#weechat'
short_name: None
nicklist: 0
title: None
local_variables: {
'plugin': 'irc',
'name': 'libera.#weechat',
}
prev_buffer: '0x34e7400'
next_buffer: '0x0'
----
[[message_buffer_moved]]
==== _buffer_moved
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_moved"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
| prev_buffer | pointer | ๅใฎใใใใกใธใฎใใคใณใฟ
| next_buffer | pointer | ๆฌกใฎใใใใกใธใฎใใคใณใฟ
|===
ไพ: ใใใใก _irc.libera.#weechat_ ใ็ชๅท 2 ใซ็งปๅ:
[source,python]
----
id: '_buffer_moved'
hda:
keys: {
'number': 'int',
'full_name': 'str',
'prev_buffer': 'ptr',
'next_buffer': 'ptr',
}
path: ['buffer']
item 1:
__path: ['0x34588c0']
number: 2
full_name: 'irc.libera.#weechat'
prev_buffer: '0x347b9f0'
next_buffer: '0x3471bc0'
----
[[message_buffer_merged]]
==== _buffer_merged
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_merged"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
| prev_buffer | pointer | ๅใฎใใใใกใธใฎใใคใณใฟ
| next_buffer | pointer | ๆฌกใฎใใใใกใธใฎใใคใณใฟ
|===
ไพ: ใใใใก _irc.libera.#weechat_ ใใใใใก #2 ใจใใผใธ:
[source,python]
----
id: '_buffer_merged'
hda:
keys: {
'number': 'int',
'full_name': 'str',
'prev_buffer': 'ptr',
'next_buffer': 'ptr',
}
path: ['buffer']
item 1:
__path: ['0x4db4c00']
number: 2
full_name: 'irc.libera.#weechat'
prev_buffer: '0x4cef9b0'
next_buffer: '0x0'
----
[[message_buffer_unmerged]]
==== _buffer_unmerged
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_unmerged"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
| prev_buffer | pointer | ๅใฎใใใใกใธใฎใใคใณใฟ
| next_buffer | pointer | ๆฌกใฎใใใใกใธใฎใใคใณใฟ
|===
ไพ: ใใใใก _irc.libera.#weechat_ ใใขใณใใผใธ:
[source,python]
----
id: '_buffer_unmerged'
hda:
keys: {
'number': 'int',
'full_name': 'str',
'prev_buffer': 'ptr',
'next_buffer': 'ptr',
}
path: ['buffer']
item 1:
__path: ['0x4db4c00']
number: 3
full_name: 'irc.libera.#weechat'
prev_buffer: '0x4cef9b0'
next_buffer: '0x0'
----
[[message_buffer_hidden]]
==== _buffer_hidden
_WeeChat ใใผใธใงใณ 1.0 ไปฅไธใงๅฉ็จๅฏใ_
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_hidden"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
| prev_buffer | pointer | ๅใฎใใใใกใธใฎใใคใณใฟ
| next_buffer | pointer | ๆฌกใฎใใใใกใธใฎใใคใณใฟ
|===
ไพ: ใใใใก _irc.libera.#weechat_ ใ้ ใ:
[source,python]
----
id: '_buffer_hidden'
hda:
keys: {
'number': 'int',
'full_name': 'str',
'prev_buffer': 'ptr',
'next_buffer': 'ptr',
}
path: ['buffer']
item 1:
__path: ['0x4db4c00']
number: 2
full_name: 'irc.libera.#weechat'
prev_buffer: '0x4cef9b0'
next_buffer: '0x0'
----
[[message_buffer_unhidden]]
==== _buffer_unhidden
_WeeChat ใใผใธใงใณ 1.0 ไปฅไธใงๅฉ็จๅฏใ_
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_unhidden"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
| prev_buffer | pointer | ๅใฎใใใใกใธใฎใใคใณใฟ
| next_buffer | pointer | ๆฌกใฎใใใใกใธใฎใใคใณใฟ
|===
ไพ: ใใใใก _irc.libera.#weechat_ ใ้ ใใใจใๆญขใใ:
[source,python]
----
id: '_buffer_unhidden'
hda:
keys: {
'number': 'int',
'full_name': 'str',
'prev_buffer': 'ptr',
'next_buffer': 'ptr',
}
path: ['buffer']
item 1:
__path: ['0x4db4c00']
number: 3
full_name: 'irc.libera.#weechat'
prev_buffer: '0x4cef9b0'
next_buffer: '0x0'
----
[[message_buffer_renamed]]
==== _buffer_renamed
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_renamed"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
| short_name | string | ็ญใๅๅ (ไพ: _#weechat_)
| local_variables | hashtable | ใญใผใซใซๅคๆฐ
|===
ไพ: ใใฉใคใใผใใใใใกใ _FlashCode_ ใใ _Flash2_ ใซใชใใผใ :
[source,python]
----
id: '_buffer_renamed'
hda:
keys: {
'number': 'int',
'full_name': 'str',
'short_name': 'str',
'local_variables': 'htb',
}
path: ['buffer']
item 1:
__path: ['0x4df7b80']
number: 5
full_name: 'irc.libera.Flash2'
short_name: 'Flash2'
local_variables: {
'server': 'libera',
'plugin': 'irc',
'type': 'private',
'channel': 'FlashCode',
'nick': 'test',
'name': 'libera.Flash2',
}
----
[[message_buffer_title_changed]]
==== _buffer_title_changed
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_title_changed"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
| title | string | ใใใใกใฎใฟใคใใซ
|===
ไพ: ใใฃใณใใซ _#weechat_ ใฎใใใใฏใๅคๆด:
[source,python]
----
id: '_buffer_title_changed'
hda:
keys: {
'number': 'int',
'full_name': 'str',
'title': 'str',
}
path: ['buffer']
item 1:
__path: ['0x4a715d0']
number: 3
full_name: 'irc.libera.#weechat'
title: 'Welcome on #weechat! https://weechat.org/'
----
[[message_buffer_cleared]]
==== _buffer_cleared
_WeeChat ใใผใธใงใณ 1.0 ไปฅไธใงๅฉ็จๅฏใ_
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_cleared"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
|===
ไพ: ใใใใก _irc.libera.#weechat_ ใใฏใชใข:
[source,python]
----
id: '_buffer_cleared'
hda:
keys: {
'number': 'int',
'full_name': 'str',
}
path: ['buffer']
item 1:
__path: ['0x4a715d0']
number: 3
full_name: 'irc.libera.#weechat'
----
[[message_buffer_type_changed]]
==== _buffer_type_changed
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_type_changed"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
| type | integer | ใใใใกใฎ็จฎ้ก: 0 = ๆธๅผใใ (ใใใฉใซใ)ใ1 = ่ช็ฑๅ
ๅฎน
|===
ไพ: ใใใใก _script.scripts_ ใฎ็จฎ้กใๆธๅผใใ (0) ใใ่ช็ฑๅ
ๅฎน
(1) ใซๅคๆด:
[source,python]
----
id: '_buffer_type_changed'
hda:
keys: {
'number': 'int',
'full_name': 'str',
'type': 'int',
}
path: ['buffer']
item 1:
__path: ['0x27c9a70']
number: 4
full_name: 'script.scripts'
type: 1
----
[[message_buffer_localvar_added]]
==== _buffer_localvar_added
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_localvar_added"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
| local_variables | hashtable | ใญใผใซใซๅคๆฐ
|===
ไพ: _irc.libera.#weechat_ ใซใญใผใซใซๅคๆฐ _test_ ใ่ฟฝๅ :
[source,python]
----
id='_buffer_localvar_added', objects:
hda:
keys: {
'number': 'int',
'full_name': 'str',
'local_variables': 'htb',
}
path: ['buffer']
item 1:
__path: ['0x4a73de0']
number: 3
full_name: 'irc.libera.#weechat'
local_variables: {
'server': 'libera',
'test': 'value',
'plugin': 'irc',
'type': 'channel',
'channel': '#weechat',
'nick': 'test',
'name': 'libera.#weechat',
}
----
[[message_buffer_localvar_changed]]
==== _buffer_localvar_changed
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_localvar_changed"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
| local_variables | hashtable | ใญใผใซใซๅคๆฐ
|===
ไพ: _irc.libera.#weechat_ ใซๅซใพใใใญใผใซใซๅคๆฐ _test_ ใๆดๆฐ:
[source,python]
----
id='_buffer_localvar_changed', objects:
hda:
keys: {
'number': 'int',
'full_name': 'str',
'local_variables': 'htb',
}
path: ['buffer']
item 1:
__path: ['0x4a73de0']
number: 3
full_name: 'irc.libera.#weechat'
local_variables: {
'server': 'local',
'test': 'value2',
'plugin': 'irc',
'type': 'channel',
'channel': '#weechat',
'nick': 'test',
'name': 'libera.#weechat',
}
----
[[message_buffer_localvar_removed]]
==== _buffer_localvar_removed
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_localvar_removed"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
| local_variables | hashtable | ใญใผใซใซๅคๆฐ
|===
ไพ: _irc.libera.#weechat_ ใใใญใผใซใซๅคๆฐ _test_ ใๅ้ค:
[source,python]
----
id: '_buffer_localvar_removed'
hda:
keys: {
'number': 'int',
'full_name': 'str',
'local_variables': 'htb',
}
path: ['buffer']
item 1:
__path: ['0x4a73de0']
number: 3
full_name: 'irc.libera.#prout'
local_variables: {
'server': 'local',
'plugin': 'irc',
'type': 'channel',
'channel': '#weechat',
'nick': 'test',
'name': 'libera.#weechat',
}
----
[[message_buffer_line_added]]
==== _buffer_line_added
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_line_added"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| buffer | pointer | ใใใใกใธใฎใใคใณใฟ
| date | time | ใกใใปใผใธใฎๆฅไป
| date_printed | time | WeeChat ใกใใปใผใธใ่กจ็คบใใๆฅไป
| displayed | char | ใกใใปใผใธใ่กจ็คบใใใๅ ดๅใฏ 1ใใกใใปใผใธใใใฃใซใฟใใใ (้ ใใใ) ๅ ดๅใฏ 0
// TRANSLATION MISSING
| notify_level | char | Notify level: -1 = notify disabled, 0 = low, 1 = message, 2 = private, 3 = highlight.
| highlight | char | ่กใใใคใฉใคใ้จๅใๅซใๅ ดๅใฏ 1ใใใไปฅๅคใฏ 0
| tags_array | string ใฎ้
ๅ | ่กใซๅฏพใใใฟใฐใฎใชในใ
| prefix | string | ใใฌใใฃใใฏใน
| message | string | ใกใใปใผใธ
|===
ไพ: ใใใใก _irc.libera.#weechat_ ใงใใใฏใใผใ _FlashCode_ ใใใฎๆฐใใใกใใปใผใธ _hello!_:
[source,python]
----
id: '_buffer_line_added'
hda:
keys: {
'buffer': 'ptr',
'date': 'tim',
'date_printed': 'tim',
'displayed': 'chr',
'notify_level': 'chr',
'highlight': 'chr',
'tags_array': 'arr',
'prefix': 'str',
'message': 'str',
}
path: ['line_data']
item 1:
__path: ['0x4a49600']
buffer: '0x4a715d0'
date: 1362728993
date_printed: 1362728993
displayed: 1
notify_level: 1
highlight: 0
tags_array: [
'irc_privmsg',
'notify_message',
'prefix_nick_142',
'nick_FlashCode',
'log1',
]
prefix: 'F06@F@00142FlashCode'
message: 'hello!'
----
[[message_buffer_closing]]
==== _buffer_closing
ใใฎใกใใปใผใธใฏ WeeChat ใ "buffer_closing"
ใทใฐใใซใ้ไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| number | integer | ใใใใก็ชๅท (1 ไปฅไธ)
| full_name | string | ๅฎๅ
จใชๅๅ (ไพ: _irc.libera.#weechat_)
|===
ไพ: WeeChat ใใใใใก _irc.libera.#weechat_ ใ้ใใ:
[source,python]
----
id: '_buffer_closing'
hda:
keys: {
'number': 'int',
'full_name': 'str',
}
path: ['buffer']
item 1:
__path: ['0x4a715d0']
number: 3
full_name: 'irc.libera.#weechat'
----
[[message_nicklist]]
==== _nicklist
ใใฎใกใใปใผใธใฏใใใฏใใผใ ใชในใใซๅฏพใใฆๅทจๅคงใชๆดๆฐ (ใฐใซใผใใใใณใใใฏใใผใ ใฎ่ฟฝๅ /ๆดๆฐ/ๅคๆด)
ใ่กใใใๅ ดๅใซใฏใฉใคใขใณใใซ้ใใใพใใใใฎใกใใปใผใธใซใฏๅฎๅ
จใชใใใฏใใผใ ใชในใใๅซใพใใพใใ
ใใใฏใใผใ ใชในใใซๅฏพใใฆๅฐใใชๆดๆฐใ่กใใใๅ ดๅ (ไพใใฐใใใฏใใผใ ใ 1
ใคใ ใ่ฟฝๅ )ใ่ญๅฅๅญ __nicklist_diff_ ใๅซใใกใใปใผใธใ้ไฟกใใใพใ (ไปฅไธใๅ็
ง)ใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| group | char | ใฐใซใผใใฎๅ ดๅ 1ใใใใฏใใผใ ใฎๅ ดๅ 0
| visible | char | ใฐใซใผใใใใณใใใฏใใผใ ใ่กจ็คบใใใๅ ดๅ 1ใใใไปฅๅคใฏ 0
| level | integer | ใฐใซใผใใฎใฌใใซ (ใใใฏใใผใ ใฎๅ ดๅ 0)
| name | string | ใฐใซใผใใใใณใใใฏใใผใ ใฎๅๅ
| color | string | ๅๅใฎ่ฒ
| prefix | string | ใใฌใใฃใใฏใน (ใใใฏใใผใ ๅฐ็จ)
| prefix_color | string | ใใฌใใฃใใฏในใฎ่ฒ (ใใใฏใใผใ ๅฐ็จ)
|===
ไพ: ใใใใก _irc.libera.#weechat_ ใฎใใใฏใใผใ ใชในใ:
[source,python]
----
id: '_nicklist'
hda:
keys: {
'group': 'chr',
'visible': 'chr',
'level': 'int',
'name': 'str',
'color': 'str',
'prefix': 'str',
'prefix_color': 'str',
}
path: ['buffer', 'nicklist_item']
item 1:
__path: ['0x4a75cd0', '0x31e95d0']
group: 1
visible: 0
level: 0
name: 'root'
color: None
prefix: None
prefix_color: None
item 2:
__path: ['0x4a75cd0', '0x41247b0']
group: 1
visible: 1
level: 1
name: '000|o'
color: 'weechat.color.nicklist_group'
prefix: None
prefix_color: None
item 3:
__path: ['0x4a75cd0', '0x4a60d20']
group: 0
visible: 1
level: 0
name: 'FlashCode'
color: '142'
prefix: '@'
prefix_color: 'lightgreen'
item 4:
__path: ['0x4a75cd0', '0x4aafaf0']
group: 1
visible: 1
level: 1
name: '001|v'
color: 'weechat.color.nicklist_group'
prefix: None
prefix_color: None
item 5:
__path: ['0x4a75cd0', '0x4a48d80']
group: 1
visible: 1
level: 1
name: '999|...'
color: 'weechat.color.nicklist_group'
prefix: None
prefix_color: None
item 6:
__path: ['0x4a75cd0', '0x4a5f560']
group: 0
visible: 1
level: 0
name: 'test'
color: 'weechat.color.chat_nick_self'
prefix: ' '
prefix_color: ''
----
[[message_nicklist_diff]]
==== _nicklist_diff
_WeeChat ใใผใธใงใณ 0.4.1 ไปฅไธใงๅฉ็จๅฏใ_
ใใฎใกใใปใผใธใฏใใใฏใใผใ ใชในใใซๅฏพใใฆๅฐใใชๆดๆฐ (ใฐใซใผใใใใณใใใฏใใผใ ใฎ่ฟฝๅ /ๆดๆฐ/ๅคๆด)
ใ่กใใใๅ ดๅใซใฏใฉใคใขใณใใซ้ใใใพใใใใฎใกใใปใผใธใซใฏใใใฏใใผใ ใชในใใฎๅทฎๅใๅซใพใใพใ
(ๅคใใใใฏใใผใ ใชในใใจๆฐใใใใใฏใใผใ ใชในใใฎๅทฎๅ)ใ
hdata ใจใใฆ้ใใใใใผใฟ:
[width="100%",cols="3m,2,10",options="header"]
|===
| ๅๅ | ๅ | ่ชฌๆ
| _diff | char | ๅทฎๅใฎ็จฎ้ก (ไธใๅ็
ง)
| group | char | ใฐใซใผใใฎๅ ดๅ 1ใใใใฏใใผใ ใฎๅ ดๅ 0
| visible | char | ใฐใซใผใใใใณใใใฏใใผใ ใ่กจ็คบใใใๅ ดๅ 1ใใใไปฅๅคใฏ 0
| level | integer | ใฐใซใผใใฎใฌใใซ (ใใใฏใใผใ ใฎๅ ดๅ 0)
| name | string | ใฐใซใผใใใใณใใใฏใใผใ ใฎๅๅ
| color | string | ๅๅใฎ่ฒ
| prefix | string | ใใฌใใฃใใฏใน (ใใใฏใใผใ ๅฐ็จ)
| prefix_color | string | ใใฌใใฃใใฏในใฎ่ฒ (ใใใฏใใผใ ๅฐ็จ)
|===
__diff_ ใฎใจใใใๅค:
* `+^+`: ่ฆชใฐใซใผใ:
ใใใฎๅพใซ็ถใใฐใซใผใใพใใฏใใใฏใใผใ ใซ้ขใใๆไฝใฏใใฎใฐใซใผใใซๅฏพใใฆ่กใ
* `+++`: ใใฎใฐใซใผใใใใณใใใฏใใผใ ใ่ฆชใฐใซใผใใซ่ฟฝๅ
* `+-+`: ใใฎใฐใซใผใใใใณใใใฏใใผใ ใ่ฆชใฐใซใผใใใๅ้ค
* `+*+`: ใใฎใฐใซใผใใใใณใใใฏใใผใ ใ่ฆชใฐใซใผใใงๆดๆฐ
ไพ: ใใใฏใใผใ _master_ ใ _000|o_ (IRC ใใฃใณใใซใฎใใฃใณใใซใชใใฌใผใฟ)
ใฐใซใผใใซ่ฟฝๅ ใใใใฏใใผใ _nick1_ ใจ _nick2_ ใ _999|..._ ใซ่ฟฝๅ
(IRC ใใฃใณใใซใฎไธ่ฌใฆใผใถ):
[source,python]
----
id: '_nicklist_diff'
hda:
keys: {
'_diff': 'chr',
'group': 'chr',
'visible': 'chr',
'level': 'int',
'name': 'str',
'color': 'str',
'prefix': 'str',
'prefix_color': 'str',
}
path: ['buffer', 'nicklist_item']
item 1:
__path: ['0x46f2ee0', '0x343c9b0']
_diff: 94 ('^')
group: 1
visible: 1
level: 1
name: '000|o'
color: 'weechat.color.nicklist_group'
prefix: None
prefix_color: None
item 2:
__path: ['0x46f2ee0', '0x47e7f60']
_diff: 43 ('+')
group: 0
visible: 1
level: 0
name: 'master'
color: 'magenta'
prefix: '@'
prefix_color: 'lightgreen'
item 3:
__path: ['0x46f2ee0', '0x46b8e70']
_diff: 94 ('^')
group: 1
visible: 1
level: 1
name: '999|...'
color: 'weechat.color.nicklist_group'
prefix: None
prefix_color: None
item 4:
__path: ['0x46f2ee0', '0x3dba240']
_diff: 43 ('+')
group: 0
visible: 1
level: 0
name: 'nick1'
color: 'green'
prefix: ' '
prefix_color: ''
item 5:
__path: ['0x46f2ee0', '0x3c379d0']
_diff: 43 ('+')
group: 0
visible: 1
level: 0
name: 'nick2'
color: 'lightblue'
prefix: ' '
prefix_color: ''
----
[[message_pong]]
==== _pong
_WeeChat ใใผใธใงใณ 0.4.2 ไปฅไธใงๅฉ็จๅฏใ_
ใใฎใกใใปใผใธใฏ _ใชใฌใผ_ ใ "ping" ใกใใปใผใธใๅไฟกใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
ๆๅญๅใจใใฆ้ใใใใใผใฟ: "ping" ใกใใปใผใธใงๅไฟกใใๅผๆฐใ
ใฏใฉใคใขใณใใฏๅฟ็ญๆ้ใๆธฌๅฎใใๅฟ็ญๆ้ใ้ทใๅ ดๅใฏๅๆญใใใใจใๆจๅฅจใใพใใ
[[message_upgrade]]
==== _upgrade
_WeeChat ใใผใธใงใณ 0.3.8 ไปฅไธใงๅฉ็จๅฏใ_
ใใฎใกใใปใผใธใฏ WeeChat ใใขใใใฐใฌใผใๅฆ็ใๅงใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
ใกใใปใผใธใซใใผใฟใฏๅซใพใใพใใใ
ใฏใฉใคใขใณใใฏ WeeChat ใจใฎๅๆใไธญๆญขใใใ
(_desync_ ใณใใณใใ้ไฟก)ใWeeChat ใใๅๆญใใใใจใๆจๅฅจใใพใ
(ใใใฏใขใใใฐใฌใผใใฎๅพใฏใในใฆใฎใใคใณใฟใๅคใใใใใงใ)ใ
[NOTE]
WeeChat ใฎใขใใใฐใฌใผใไธญใใฝใฑใใใฏ้ใใใพใพใงใ
(ใใ ใ SSL ใไฝฟใฃใฆใใๅ ดๅใฏ้ใใใใพใ)ใ
[[message_upgrade_ended]]
==== _upgrade_ended
_WeeChat ใใผใธใงใณ 0.3.8 ไปฅไธใงๅฉ็จๅฏใ_
ใใฎใกใใปใผใธใฏ WeeChat
ใใขใใใฐใฌใผใๅฆ็ใ็ตใใ้ใซใฏใฉใคใขใณใใซ้ใใใพใใ
ใกใใปใผใธใซใใผใฟใฏๅซใพใใพใใใ
ใฏใฉใคใขใณใใฏ WeeChat ใจใฎๅๆใๅ้ใใใใจใๆจๅฅจใใพใ:
ใฏใฉใคใขใณใใ้ๅงใใฆ _init_ ไปฅ้ใซ้ไฟกใใใในใฆใฎใณใใณใใๅ้ไฟกใ
[[objects]]
=== ใชใใธใงใฏใ
ใชใใธใงใฏใใฏ _type_ ใจๅผใฐใใ 3 ๆๅญใง็นๅฎใใใพใใไปฅไธใฎ็จฎ้กใไฝฟใใใพใ:
[width="100%",cols="^2m,5,10",options="header"]
|===
| ๅ | ๅค | ้ทใ
| chr | ็ฌฆๅทไปๆๅญ | 1 ใใคใ
| int | ็ฌฆๅทไปๆดๆฐ | 4 ใใคใ
| lon | ็ฌฆๅทไป้ทๆดๆฐ | 1 ใใคใ + ๆๅญๅใง่กจ็พใใๆดๆฐใฎ้ทใ
| str | ๆๅญๅ | 4 ใใคใ + ๆๅญๅใฎ้ทใ (ๆๅพใฎ `\0` ใๅซใพใชใ)
| buf | ใใใใกใฎใใคใๆฐ | 4 ใใคใ + ใใผใฟใฎ้ทใ
| ptr | ใใคใณใฟ | 1 ใใคใ + ๆๅญๅใง่กจ็พใใใใคใณใฟใฎ้ทใ
| tim | ๆ้ | 1 ใใคใ + ๆๅญๅใง่กจ็พใใๆ้ใฎ้ทใ
| htb | ใใใทใฅใใผใใซ | ๅฏๅค
| hda | hdata ใฎๅ
ๅฎน | ๅฏๅค
| inf | ใคใณใใฉ: ๅๅ + ๅ
ๅฎน | ๅฏๅค
| inl | ใคใณใใฉใชในใใฎๅ
ๅฎน | ๅฏๅค
| arr | ใชใใธใงใฏใใฎ้
ๅ | 3 ใใคใ (ๅ) + ใชใใธใงใฏใใฎๆฐ + ใใผใฟ
|===
[[object_char]]
==== ็ฌฆๅทไปๆๅญ
1 ใคใฎ็ฌฆๅทไปๆๅญใฏ 1 ใใคใใจใใฆไฟๅญใใใพใใ
ไพ:
....
โโโโโโ
โ 41 โ โโโโโบ 65 (0x41: "A")
โโโโโโ
....
[[object_integer]]
==== ็ฌฆๅทไปๆดๆฐ
1 ใคใฎ็ฌฆๅทไปๆดๆฐใฏ 4 ใใคใใจใใฆไฟๅญใใใใใใฐใจใณใใฃใขใณๆธๅผใงใจใณใณใผใใใใฆใใพใ
(ใใผใฟใฏไธไฝใใคใใๅ
้ ญใซใใฆไธฆในใใใฆใใพใ)ใ
็ฏๅฒ: -2147483648 ใใ 2147483647ใ
ไพ:
....
โโโโโโฌโโโโโฌโโโโโฌโโโโโ
โ 00 โ 01 โ E2 โ 40 โ โโโโโบ 123456
โโโโโโดโโโโโดโโโโโดโโโโโ
โโโโโโฌโโโโโฌโโโโโฌโโโโโ
โ FF โ FE โ 1D โ C0 โ โโโโโบ -123456
โโโโโโดโโโโโดโโโโโดโโโโโ
....
[[object_long_integer]]
==== ็ฌฆๅทไป้ทๆดๆฐ
1 ใคใฎ็ฌฆๅทไป้ทๆดๆฐใฏๆๅญๅใจใใฆใจใณใณใผใใใใฆใใพใใๆๅญๅใฎ้ทใใฏ 1 ใใคใใง่กจ็พใใใฆใใพใใ
็ฏๅฒ: -9223372036854775808 ใใ 9223372036854775807ใ
ไพ:
....
โโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโ
โ 0A โ 31 โ 32 โ 33 โ 34 โ 35 โ 36 โ 37 โ 38 โ 39 โ 30 โ โโโโโบ 1234567890
โโโโโโจโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโ
โโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
length '1' '2' '3' '4' '5' '6' '7' '8' '9' '0'
โโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโ
โ 0B โ 2D โ 31 โ 32 โ 33 โ 34 โ 35 โ 36 โ 37 โ 38 โ 39 โ 30 โ โโโโโบ -1234567890
โโโโโโจโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโ
โโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
length '-' '1' '2' '3' '4' '5' '6' '7' '8' '9' '0'
....
[[object_string]]
==== ๆๅญๅ
1 ใคใฎๆๅญๅใฏใใฎ้ทใ (4 ใใคใ่กจ็พใใๆดๆฐ) + ๆๅญๅใฎๅ
ๅฎน (ๆๅพใฎ `\0` ใ้คใ) ใง่กจ็พใใใฆใใพใใ
ไพ:
....
โโโโโโฌโโโโโฌโโโโโฌโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโ
โ 00 โ 00 โ 00 โ 05 โ 68 โ 65 โ 6C โ 6C โ 6F โ โโโโโบ "hello"
โโโโโโดโโโโโดโโโโโดโโโโโจโโโโโดโโโโโดโโโโโดโโโโโดโโโโโ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ
length 'h' 'e' 'l' 'l' 'o'
....
็ฉบๆๅญๅใ่กจ็พใใใซใฏ้ทใใใผใญใซใใฆใใ ใใ:
....
โโโโโโฌโโโโโฌโโโโโฌโโโโโ
โ 00 โ 00 โ 00 โ 00 โ โโโโโบ ""
โโโโโโดโโโโโดโโโโโดโโโโโ
โโโโโโโโโโโโโโโโโโโ
length
....
_NULL_ ๆๅญๅ (C ่จ่ชใฎ NULL ใใคใณใฟ) ใ่กจ็พใใใซใฏใฎ้ทใใ -1 ใซใใฆใใ ใใ:
....
โโโโโโฌโโโโโฌโโโโโฌโโโโโ
โ FF โ FF โ FF โ FF โ โโโโโบ NULL
โโโโโโดโโโโโดโโโโโดโโโโโ
โโโโโโโโโโโโโโโโโโโ
length
....
[[object_buffer]]
==== ใใใใก
<<object_string,ๆๅญๅ>>ใจๅใๆธๅผ; ๅ
ๅฎนใฏๅ็ดใชใใคใใฎ้
ๅใ
[[object_pointer]]
==== ใใคใณใฟ
1 ใคใฎใใคใณใฟใฏๆๅญๅ (16 ้ฒๆฐ) ใจใใฆใจใณใณใผใใใใฆใใพใใๆๅญๅใฎ้ทใใฏ 1 ใใคใใง่กจ็พใใใฆใใพใใ
ไพ:
....
โโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโ
โ 09 โ 31 โ 61 โ 32 โ 62 โ 33 โ 63 โ 34 โ 64 โ 35 โ โโโโโบ 0x1a2b3c4d5
โโโโโโจโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโ
โโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
length '1' 'a' '2' 'b' '3' 'c' '4' 'd' '5'
....
_NULL_ ใใคใณใฟใ่กจ็พใใใซใฏ้ทใใ 1 ใงๅคใ 0 ใซใใฆใใ ใใ:
....
โโโโโโฅโโโโโ
โ 01 โ 30 โ โโโโโบ NULL (0x0)
โโโโโโจโโโโโ
โโโโ โโโโ
length '0'
....
[[object_time]]
==== ๆ้
1 ใคใฎๆ้ (็งๆฐ) ใฏๆๅญๅใจใใฆใจใณใณใผใใใใฆใใพใใๆๅญๅใฎ้ทใใฏ 1 ใใคใใง่กจ็พใใใฆใใพใใ
ไพ:
....
โโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโฌโโโโโ
โ 0A โ 31 โ 33 โ 32 โ 31 โ 39 โ 39 โ 33 โ 34 โ 35 โ 36 โ โโโโโบ 1321993456
โโโโโโจโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโดโโโโโ
โโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
length '1' '3' '2' '1' '9' '9' '3' '4' '5' '6'
....
[[object_hashtable]]
==== ใใใทใฅใใผใใซ
1 ใคใฎใใใทใฅใใผใใซใซใฏใญใผใฎ็จฎ้กใๅคใฎ็จฎ้กใใใใทใฅใใผใใซใซๅซใพใใ่ฆ็ด ใฎๆฐ
(1 ใใคใ่กจ็พใฎๆดๆฐ)ใ่ฆ็ด ใฎใญใผใจๅคใๅซใพใใฆใใพใใ
....
โโโโโโโโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโฅโโโโโโโโฌโโโโโโโโโโฅโโโโโโฅโโโโโโโโฌโโโโโโโโโโ
โ type_keys โ type_values โ count โ key 1 โ value 1 โ ... โ key N โ value N โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโจโโโโโโโโดโโโโโโโโโโจโโโโโโจโโโโโโโโดโโโโโโโโโโ
....
ไพ:
....
โโโโโโโฌโโโโโโฌโโโโฅโโโโโโโฌโโโโโโฅโโโโโโโฌโโโโโโ
โ str โ str โ 2 โ key1 โ abc โ key2 โ def โ โโโโโบ { 'key1' => 'abc',
โโโโโโโดโโโโโโดโโโโจโโโโโโโดโโโโโโจโโโโโโโดโโโโโโ 'key2' => 'def' }
โโโโโ โโโโโ โโโ โโโโโโโโโโโโ โโโโโโโโโโโโ
type type count item 1 item 2
keys values
....
[[object_hdata]]
==== hdata
1 ใคใฎ _hdata_ ใซใฏ hdata ๅใๅซใใในใใญใผใฎใชในใใใชใใธใงใฏใใปใใใฎๆฐใใชใใธใงใฏใใปใใ
(ใใคใณใฟใฎใในใใชใใธใงใฏใ) ใๅซใพใใฆใใพใใ
....
โโโโโโโโโโฌโโโโโโโฌโโโโโโโโฅโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโฅโโโโโโฅโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโฅโโโโโโ
โ h-path โ keys โ count โ p-path โ value 1 ... value N โ ... โ p-path โ value 1 ... value N โ ... โ
โโโโโโโโโโดโโโโโโโดโโโโโโโโจโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโจโโโโโโจโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโจโโโโโโ
....
* _h-path_ (ๆๅญๅ): hdata ใซใขใฏใปในใใ้ใซไฝฟใใใน (ไพ:
_buffer/lines/line/line_data_); ่ฟใใใ hdata ใฏใในใฎๆๅพใฎ่ฆ็ด ใงใ
* _keys_ (ๆๅญๅ): _key:type_ ใฎใชในใ (ใณใณใๅบๅใ)
ใๅซใๆๅญๅใไพ: _number:int,name:str_
* _count_ (ๆๅญๅ): ใชใใธใงใฏใใปใใใฎๆฐ
* _p-path_: ใชใใธใงใฏใใธใฎใใคใณใฟใๅซใใใน
(ใใคใณใฟใฎๆฐใฏใในใซๅซใพใใ่ฆ็ด ใฎๆฐ)
* _values_: ๅคใฎใชในใ (ๅคใฎๆฐใฏ hdata
ใง่ฟใใใใญใผใฎๆฐ)
2 ใคใฎใใใใก (weechat ใณใขใจ libera ใตใผใ) ใจ
2 ใคใฎใญใผ (_number_ ใจ _full_name_) ใๆใค hdata ใฎไพ:
....
# ใณใใณใ
hdata buffer:gui_buffers(*) number,full_name
# ๅฟ็ญ
โโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโฅโโโโโโโโโโฌโโโโฌโโโโโโโโโโโโโโโฅโโโโโโโโโโฌโโโโฌโโโโโโโโโโโโโโโโโโโโ
โ buffer โ number:int,full_name:str โ 2 โ 0x12345 โ 1 โ core.weechat โ 0x6789a โ 2 โ irc.server.libera โ
โโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโจโโโโโโโโโโดโโโโดโโโโโโโโโโโโโโโจโโโโโโโโโโดโโโโดโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโ โโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
h-path keys count buffer 1 buffer 2
....
ใณใขใใใใกใฎ่กใๅซใ hdata ใฎไพ:
....
# ใณใใณใ
hdata buffer:gui_buffers(*)/lines/first_line(*)/data
# ๅฟ็ญ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโฌโโโโโฅโโ
โ buffer/lines/line/line_data โ ... โ 50 โ ...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโดโโโโโจโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโ โโโโ
h-path (hdata names) keys count
โโโฅโโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโฅโโ
... โ 0x23cf970 โ 0x23cfb60 โ 0x23d5f40 โ 0x23d8a10 โ ..... โ ...
โโโจโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโจโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโ
p-path (pointers) objects
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
line 1
โโโฅโโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโฅโโโโโโโโโโโโโโโ
... โ 0x23cf970 โ 0x23cfb60 โ 0x23d6110 โ 0x23d9420 โ ..... โ ............ โ
โโโจโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโจโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโ
p-path (pointers) objects
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ
line 2 lines 3-50
....
ใใใฏใใผใ ใชในใใๅซใ hdata ใฎไพ:
....
# ใณใใณใ
nicklist
# ๅฟ็ญ
โโโโโโโโโโโโโโโโโโโโโฌโโ
โ buffer/nick_group โ ...
โโโโโโโโโโโโโโโโโโโโโดโโ
โโโโโโโโโโโโโโโโโโโ
h-path
โโโฅโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโฅโโ
... โ group:chr,visible:chr,name:str,color:str,prefix:str,(...) โ 12 โ ...
โโโจโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโจโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโ
keys count
โโโฅโโโโโโโโโโฌโโโโโโโโโโฌโโโโฌโโโโฌโโโโโโโฌโโฌโโฌโโฌโโโโฅโโ
... โ 0x12345 โ 0x6789a โ 1 โ 0 โ root โ โ โ โ 0 โ ...
โโโจโโโโโโโโโโดโโโโโโโโโโดโโโโดโโโโดโโโโโโโดโโดโโดโโดโโโโจโโ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ
p-path objects
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
group (nicklist root)
โโโฅโโโโโโโโโโฌโโโโโโโโโโฌโโโโฌโโโโฌโโโโโโโโฌโโฌโโฌโโฌโโโโฅโโ
... โ 0x123cf โ 0x678d4 โ 1 โ 0 โ 000|o โ โ โ โ 1 โ ...
โโโจโโโโโโโโโโดโโโโโโโโโโดโโโโดโโโโดโโโโโโโโดโโดโโดโโดโโโโจโโ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ
p-path objects
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
group (channel ops)
โโโฅโโโโโโโโโโฌโโโโโโโโโโฌโโโโฌโโโโฌโโโโโโโโโโโฌโโโโโโโฌโโโโฌโโโโโโโโโโโโโฌโโโโฅโโ
... โ 0x128a7 โ 0x67ab2 โ 0 โ 1 โ ChanServ โ blue โ @ โ lightgreen โ 0 โ ...
โโโจโโโโโโโโโโดโโโโโโโโโโดโโโโดโโโโดโโโโโโโโโโโดโโโโโโโดโโโโดโโโโโโโโโโโโโดโโโโจโโ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
p-path objects
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
nick (@ChanServ)
....
็ฉบใฎ hdata ใฎไพ (WeeChat ใฎใใใใชในใใ็ฉบใฎๅ ดๅ):
....
# ใณใใณใ
hdata hotlist:gui_hotlist(*)
# ๅฟ็ญ
โโโโโโโโโโฌโโโโโโโโโฌโโโโ
โ (NULL) โ (NULL) โ 0 โ
โโโโโโโโโโดโโโโโโโโโดโโโโ
โโโโโโโโ โโโโโโโโ โโโ
h-path keys count
....
[[object_info]]
==== ใคใณใใฉ
1 ใคใฎ _ใคใณใใฉ_ ใฏๅๅใจๅคใๅซใใงใใพใ (ไธกๆนใจใๆๅญๅ)ใ
....
โโโโโโโโฌโโโโโโโโ
โ name โ value โ
โโโโโโโโดโโโโโโโโ
....
* _name_ (ๆๅญๅ): ใคใณใใฉใฎๅๅ
* _value_ (ๆๅญๅ): ๅค
_version_ ใคใณใใฉใฎไพ:
....
โโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโ
โ version โ WeeChat 0.3.7-dev โ
โโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโ
....
[[object_infolist]]
==== ใคใณใใฉใชในใ
1 ใคใฎ _ใคใณใใฉใชในใ_ ใฏๅๅใ่ฆ็ด ใฎๆฐใ่ฆ็ด
(ๅคๆฐใฎใปใใ) ใๅซใใงใใพใใ
....
โโโโโโโโฌโโโโโโโโฅโโโโโโโโโฅโโโโโโฅโโโโโโโโโ
โ name โ count โ item 1 โ ... โ item N โ
โโโโโโโโดโโโโโโโโจโโโโโโโโโจโโโโโโจโโโโโโโโโ
....
่ฆ็ด ใจใฏ:
....
โโโโโโโโโฅโโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโฅโโโโโโฅโโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโ
โ count โ name 1 โ type 1 โ value 1 โ ... โ name N โ type N โ value N โ
โโโโโโโโโจโโโโโโโโโดโโโโโโโโโดโโโโโโโโโโจโโโโโโจโโโโโโโโโดโโโโโโโโโดโโโโโโโโโโ
....
* _name_ (ๆๅญๅ): ใคใณใใฉใชในใใฎๅๅ (_buffer_ใ_window_ใ_bar_ใ...)
* _count_ (ๆดๆฐ): ่ฆ็ด ใฎๆฐ
* _item_:
** _count_: ่ฆ็ด ใซๅซใพใใๅคๆฐใฎๆฐ
** _name_: ๅคๆฐใฎๅๅ
** _type_: ๅคๆฐใฎๅ (_int_ใ_str_ใ...)
** _value_: ๅคๆฐใฎๅค
2 ใคใฎใใใใก (weechat ใณใขใจ libera ใตใผใ) ใๆใคใคใณใใฉใชในใใฎไพ:
....
# ใณใใณใ
infolist buffer
# ๅฟ็ญ
โโโโโโโโโโฌโโโโฅโโโโโฌโโโโโโโโโโฌโโโโโโฌโโโโโโโโโโฌโโโโโโฅโโโโโฌโโโโโโโโโโฌโโโโโโฌโโโโโโโโโโฌโโโโโโ
โ buffer โ 2 โ 42 โ pointer โ ptr โ 0x12345 โ ... โ 42 โ pointer โ ptr โ 0x6789a โ ... โ
โโโโโโโโโโดโโโโจโโโโโดโโโโโโโโโโดโโโโโโดโโโโโโโโโโดโโโโโโจโโโโโดโโโโโโโโโโดโโโโโโดโโโโโโโโโโดโโโโโโ
โโโโโโโโ โโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
name count item 1 item 2
....
[[object_array]]
==== ้
ๅ
1 ใคใฎ้
ๅใฏๅ (3 ใใคใ) + ใชใใธใงใฏใใฎๆฐ (4 ใใคใ่กจ็พใฎๆดๆฐ) + ใใผใฟใใใชใใพใใ
2 ใคใฎๆๅญๅใๆใค้
ๅใฎไพ:
....
โโโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโฅโโโโโฌโโโโโฌโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโฅโโโโโฌโโโโโ
โ str โ 00 โ 00 โ 00 โ 02 โ 00 โ 00 โ 00 โ 03 โ 61 โ 62 โ 63 โ 00 โ 00 โ 00 โ 02 โ 64 โ 65 โ โโโโโบ [ "abc", "de" ]
โโโโโโโจโโโโโดโโโโโดโโโโโดโโโโโจโโโโโดโโโโโดโโโโโดโโโโโจโโโโโดโโโโโดโโโโโจโโโโโดโโโโโดโโโโโดโโโโโจโโโโโดโโโโโ
โโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโ
type number of strings length 'a' 'b' 'c' length 'd' 'e'
....
3 ใคใฎๆดๆฐใๆใค้
ๅใฎไพ:
....
โโโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโ
โ int โ 00 โ 00 โ 00 โ 03 โ 00 โ 00 โ 00 โ 7B โ 00 โ 00 โ 01 โ C8 โ 00 โ 00 โ 03 โ 15 โ โโโโโบ [ 123, 456, 789 ]
โโโโโโโจโโโโโดโโโโโดโโโโโดโโโโโจโโโโโดโโโโโดโโโโโดโโโโโจโโโโโดโโโโโดโโโโโดโโโโโจโโโโโดโโโโโดโโโโโดโโโโโ
โโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
type number of integers 123 (0x7B) 456 (0x1C8) 789 (0x315)
....
_NULL_ ้
ๅ:
....
โโโโโโโฅโโโโโฌโโโโโฌโโโโโฌโโโโโ
โ str โ 00 โ 00 โ 00 โ 00 โ โโโโโบ NULL
โโโโโโโจโโโโโดโโโโโดโโโโโดโโโโโ
โโโโโ โโโโโโโโโโโโโโโโโโโ
type number of strings
....
[[typical_session]]
== ๅ
ธๅ็ใชใปใใทใงใณ
// TRANSLATION MISSING
....
โโโโโโโโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโ
โ ใฏใฉใคใขใณใ โ โ(ใใใใฏใผใฏ)โ โค ใชใฌใผ โโโโโโโโโโโโโโโโโโโโค WeeChat โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบ โ โ
โ ใฝใฑใใใใชใผใใณ โ ใฏใฉใคใขใณใใ่ฟฝๅ โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบ โ โ
โ cmd: handshake ... โ negotiate algos โ
โ โ and options โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโข โ
โ msg: id: "handshake" ... โ โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบ โ โ
โ cmd: init password=xxx,... โ ใฏใฉใคใขใณใใๅๆๅ/่จฑๅฏ โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบ โ โ
โ cmd: hdata buffer ... โโโโโโโโโโโโโโโโโโโโโโโโโโโบ โ
โ sync ... โ hdata ใฎ่ฆๆฑ โ hdata
โ โ โ ใฎๅคใ่ชญใฟๅบใ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโข
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโข hdata โ
ใใใใก โ msg: hda buffer โ โ
ใไฝๆ โ โ โ
โ ........ โ ........ โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบ โ โ
โ cmd: input ... โโโโโโโโโโโโโโโโโโโโโโโโโโโบ โ
โ โ ใใใใกใซใใผใฟใ้ไฟก โ ใใใใกใซ
โ โ โ ใใผใฟใ้ไฟก
โ ........ โ ........ โ
โ โ โ ใทใฐใใซ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโข ใฎๅไฟก
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโข ใทใฐใใซ XXX โ (ใชใฌใผ
ใใใใก โ msg: id: "_buffer_..." โ โ ใใใใฏ)
ใๆดๆฐ โ โ โ
โ ........ โ ........ โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบ โ โ
โ cmd: ping ... โ โ
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโข โ
ๅฟ็ญ โ msg: id: "_pong" ... โ โ
ๆ้ โ โ โ
ใ่จๆธฌ โ ........ โ ........ โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโบ โ โ
โ cmd: quit โ ใฏใฉใคใขใณใใๅๆญ โ
โ โ โ
....
|