Commit be6a4436a2

be6a4436a2dfba1bd8f388c5498bc06fc3e58b33

parent: adb9865c01

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2020-12-10 17:07 UTC

room: Add member prefixes matching the members power level.

Layout: unified · split

Cargo.lock +65 −79
@@ -97,9 +97,9 @@ dependencies = [
97 97
98[[package]] 98[[package]]
99name = "ahash" 99name = "ahash"
100version = "0.5.7" 100version = "0.5.9"
101source = "registry+https://github.com/rust-lang/crates.io-index" 101source = "registry+https://github.com/rust-lang/crates.io-index"
102checksum = "ad4243ec6feddc812c0f442d9765374d250aba94e10ecf8b632e1b1c118547e8" 102checksum = "062782ee945b38cab67201cd84c77ab3881c07125a1f1f7a5d2fd213f797a2d6"
103dependencies = [ 103dependencies = [
104 "getrandom 0.2.0", 104 "getrandom 0.2.0",
105 "lazy_static", 105 "lazy_static",
@@ -184,9 +184,9 @@ dependencies = [
184 184
185[[package]] 185[[package]]
186name = "async-io" 186name = "async-io"
187version = "1.2.0" 187version = "1.3.1"
188source = "registry+https://github.com/rust-lang/crates.io-index" 188source = "registry+https://github.com/rust-lang/crates.io-index"
189checksum = "40a0b2bb8ae20fede194e779150fe283f65a4a08461b496de546ec366b174ad9" 189checksum = "9315f8f07556761c3e48fec2e6b276004acf426e6dc068b2c2251854d65ee0fd"
190dependencies = [ 190dependencies = [
191 "concurrent-queue", 191 "concurrent-queue",
192 "fastrand", 192 "fastrand",
@@ -221,7 +221,7 @@ dependencies = [
221 "async-io", 221 "async-io",
222 "async-mutex", 222 "async-mutex",
223 "blocking", 223 "blocking",
224 "crossbeam-utils 0.8.0", 224 "crossbeam-utils 0.8.1",
225 "futures-channel", 225 "futures-channel",
226 "futures-core", 226 "futures-core",
227 "futures-io", 227 "futures-io",
@@ -408,9 +408,9 @@ checksum = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba"
408 408
409[[package]] 409[[package]]
410name = "cc" 410name = "cc"
411version = "1.0.65" 411version = "1.0.66"
412source = "registry+https://github.com/rust-lang/crates.io-index" 412source = "registry+https://github.com/rust-lang/crates.io-index"
413checksum = "95752358c8f7552394baf48cd82695b345628ad3f170d607de3ca03b8dacca15" 413checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48"
414 414
415[[package]] 415[[package]]
416name = "cexpr" 416name = "cexpr"
@@ -481,15 +481,6 @@ dependencies = [
481 "vec_map", 481 "vec_map",
482] 482]
483 483
484[[package]]
485name = "cloudabi"
486version = "0.1.0"
487source = "registry+https://github.com/rust-lang/crates.io-index"
488checksum = "4344512281c643ae7638bbabc3af17a11307803ec8f0fcad9fae512a8bf36467"
489dependencies = [
490 "bitflags",
491]
492
493[[package]] 484[[package]]
494name = "cmake" 485name = "cmake"
495version = "0.1.45" 486version = "0.1.45"
@@ -520,9 +511,9 @@ dependencies = [
520 511
521[[package]] 512[[package]]
522name = "const-random" 513name = "const-random"
523version = "0.1.12" 514version = "0.1.13"
524source = "registry+https://github.com/rust-lang/crates.io-index" 515source = "registry+https://github.com/rust-lang/crates.io-index"
525checksum = "486d435a7351580347279f374cb8a3c16937485441db80181357b7c4d70f17ed" 516checksum = "f590d95d011aa80b063ffe3253422ed5aa462af4e9867d43ce8337562bac77c4"
526dependencies = [ 517dependencies = [
527 "const-random-macro", 518 "const-random-macro",
528 "proc-macro-hack", 519 "proc-macro-hack",
@@ -530,9 +521,9 @@ dependencies = [
530 521
531[[package]] 522[[package]]
532name = "const-random-macro" 523name = "const-random-macro"
533version = "0.1.12" 524version = "0.1.13"
534source = "registry+https://github.com/rust-lang/crates.io-index" 525source = "registry+https://github.com/rust-lang/crates.io-index"
535checksum = "49a84d8ff70e3ec52311109b019c27672b4c1929e4cf7c18bcf0cd9fb5e230be" 526checksum = "615f6e27d000a2bffbc7f2f6a8669179378fa27ee4d0a509e985dfc0a7defb40"
536dependencies = [ 527dependencies = [
537 "getrandom 0.2.0", 528 "getrandom 0.2.0",
538 "lazy_static", 529 "lazy_static",
@@ -595,7 +586,7 @@ checksum = "a1aaa739f95311c2c7887a76863f500026092fb1dce0161dab577e559ef3569d"
595dependencies = [ 586dependencies = [
596 "cfg-if 1.0.0", 587 "cfg-if 1.0.0",
597 "const_fn", 588 "const_fn",
598 "crossbeam-utils 0.8.0", 589 "crossbeam-utils 0.8.1",
599 "lazy_static", 590 "lazy_static",
600 "memoffset", 591 "memoffset",
601 "scopeguard", 592 "scopeguard",
@@ -625,13 +616,12 @@ dependencies = [
625 616
626[[package]] 617[[package]]
627name = "crossbeam-utils" 618name = "crossbeam-utils"
628version = "0.8.0" 619version = "0.8.1"
629source = "registry+https://github.com/rust-lang/crates.io-index" 620source = "registry+https://github.com/rust-lang/crates.io-index"
630checksum = "ec91540d98355f690a86367e566ecad2e9e579f230230eb7c21398372be73ea5" 621checksum = "02d96d1e189ef58269ebe5b97953da3274d83a93af647c2ddd6f9dab28cedb8d"
631dependencies = [ 622dependencies = [
632 "autocfg", 623 "autocfg",
633 "cfg-if 1.0.0", 624 "cfg-if 1.0.0",
634 "const_fn",
635 "lazy_static", 625 "lazy_static",
636] 626]
637 627
@@ -1215,9 +1205,9 @@ checksum = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6"
1215 1205
1216[[package]] 1206[[package]]
1217name = "js-sys" 1207name = "js-sys"
1218version = "0.3.45" 1208version = "0.3.46"
1219source = "registry+https://github.com/rust-lang/crates.io-index" 1209source = "registry+https://github.com/rust-lang/crates.io-index"
1220checksum = "ca059e81d9486668f12d455a4ea6daa600bd408134cd17e3d3fb5a32d1f016f8" 1210checksum = "cf3d7383929f7c9c7c2d0fa596f325832df98c3704f2c60553080f7127a58175"
1221dependencies = [ 1211dependencies = [
1222 "wasm-bindgen", 1212 "wasm-bindgen",
1223] 1213]
@@ -1277,15 +1267,15 @@ dependencies = [
1277 1267
1278[[package]] 1268[[package]]
1279name = "libc" 1269name = "libc"
1280version = "0.2.80" 1270version = "0.2.81"
1281source = "registry+https://github.com/rust-lang/crates.io-index" 1271source = "registry+https://github.com/rust-lang/crates.io-index"
1282checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614" 1272checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb"
1283 1273
1284[[package]] 1274[[package]]
1285name = "libloading" 1275name = "libloading"
1286version = "0.6.5" 1276version = "0.6.6"
1287source = "registry+https://github.com/rust-lang/crates.io-index" 1277source = "registry+https://github.com/rust-lang/crates.io-index"
1288checksum = "1090080fe06ec2648d0da3881d9453d97e71a45f00eb179af7fdd7e3f686fdb0" 1278checksum = "e9367bdfa836b7e3cf895867f7a570283444da90562980ec2263d6e1569b16bc"
1289dependencies = [ 1279dependencies = [
1290 "cfg-if 1.0.0", 1280 "cfg-if 1.0.0",
1291 "winapi 0.3.9", 1281 "winapi 0.3.9",
@@ -1498,9 +1488,9 @@ dependencies = [
1498 1488
1499[[package]] 1489[[package]]
1500name = "mio" 1490name = "mio"
1501version = "0.6.22" 1491version = "0.6.23"
1502source = "registry+https://github.com/rust-lang/crates.io-index" 1492source = "registry+https://github.com/rust-lang/crates.io-index"
1503checksum = "fce347092656428bc8eaf6201042cb551b8d67855af7374542a92a0fbfcac430" 1493checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4"
1504dependencies = [ 1494dependencies = [
1505 "cfg-if 0.1.10", 1495 "cfg-if 0.1.10",
1506 "fuchsia-zircon", 1496 "fuchsia-zircon",
@@ -1528,9 +1518,9 @@ dependencies = [
1528 1518
1529[[package]] 1519[[package]]
1530name = "miow" 1520name = "miow"
1531version = "0.2.1" 1521version = "0.2.2"
1532source = "registry+https://github.com/rust-lang/crates.io-index" 1522source = "registry+https://github.com/rust-lang/crates.io-index"
1533checksum = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" 1523checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d"
1534dependencies = [ 1524dependencies = [
1535 "kernel32-sys", 1525 "kernel32-sys",
1536 "net2", 1526 "net2",
@@ -1568,9 +1558,9 @@ dependencies = [
1568 1558
1569[[package]] 1559[[package]]
1570name = "net2" 1560name = "net2"
1571version = "0.2.35" 1561version = "0.2.36"
1572source = "registry+https://github.com/rust-lang/crates.io-index" 1562source = "registry+https://github.com/rust-lang/crates.io-index"
1573checksum = "3ebc3ec692ed7c9a255596c67808dee269f64655d8baf7b4f0638e51ba1d6853" 1563checksum = "d7cf75f38f16cb05ea017784dc6dbfd354f76c223dba37701734c4f5a9337d02"
1574dependencies = [ 1564dependencies = [
1575 "cfg-if 0.1.10", 1565 "cfg-if 0.1.10",
1576 "libc", 1566 "libc",
@@ -1602,9 +1592,9 @@ dependencies = [
1602 1592
1603[[package]] 1593[[package]]
1604name = "nom" 1594name = "nom"
1605version = "6.0.0" 1595version = "6.0.1"
1606source = "registry+https://github.com/rust-lang/crates.io-index" 1596source = "registry+https://github.com/rust-lang/crates.io-index"
1607checksum = "4489ccc7d668957ddf64af7cd027c081728903afa6479d35da7e99bf5728f75f" 1597checksum = "88034cfd6b4a0d54dd14f4a507eceee36c0b70e5a02236c4e4df571102be17f0"
1608dependencies = [ 1598dependencies = [
1609 "bitvec", 1599 "bitvec",
1610 "lexical-core", 1600 "lexical-core",
@@ -1727,12 +1717,11 @@ dependencies = [
1727 1717
1728[[package]] 1718[[package]]
1729name = "parking_lot_core" 1719name = "parking_lot_core"
1730version = "0.8.0" 1720version = "0.8.1"
1731source = "registry+https://github.com/rust-lang/crates.io-index" 1721source = "registry+https://github.com/rust-lang/crates.io-index"
1732checksum = "c361aa727dd08437f2f1447be8b59a33b0edd15e0fcee698f935613d9efbca9b" 1722checksum = "d7c6d9b8427445284a09c55be860a15855ab580a417ccad9da88f5a06787ced0"
1733dependencies = [ 1723dependencies = [
1734 "cfg-if 0.1.10", 1724 "cfg-if 1.0.0",
1735 "cloudabi",
1736 "instant", 1725 "instant",
1737 "libc", 1726 "libc",
1738 "redox_syscall", 1727 "redox_syscall",
@@ -1856,11 +1845,11 @@ dependencies = [
1856 1845
1857[[package]] 1846[[package]]
1858name = "polyval" 1847name = "polyval"
1859version = "0.4.1" 1848version = "0.4.2"
1860source = "registry+https://github.com/rust-lang/crates.io-index" 1849source = "registry+https://github.com/rust-lang/crates.io-index"
1861checksum = "a5884790f1ce3553ad55fec37b5aaac5882e0e845a2612df744d6c85c9bf046c" 1850checksum = "b3fd900a291ceb8b99799cc8cd3d1d3403a51721e015bc533528b2ceafcc443c"
1862dependencies = [ 1851dependencies = [
1863 "cfg-if 0.1.10", 1852 "cfg-if 1.0.0",
1864 "universal-hash", 1853 "universal-hash",
1865] 1854]
1866 1855
@@ -2300,18 +2289,18 @@ checksum = "f638d531eccd6e23b980caf34876660d38e265409d8e99b397ab71eb3612fad0"
2300 2289
2301[[package]] 2290[[package]]
2302name = "serde" 2291name = "serde"
2303version = "1.0.117" 2292version = "1.0.118"
2304source = "registry+https://github.com/rust-lang/crates.io-index" 2293source = "registry+https://github.com/rust-lang/crates.io-index"
2305checksum = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a" 2294checksum = "06c64263859d87aa2eb554587e2d23183398d617427327cf2b3d0ed8c69e4800"
2306dependencies = [ 2295dependencies = [
2307 "serde_derive", 2296 "serde_derive",
2308] 2297]
2309 2298
2310[[package]] 2299[[package]]
2311name = "serde_derive" 2300name = "serde_derive"
2312version = "1.0.117" 2301version = "1.0.118"
2313source = "registry+https://github.com/rust-lang/crates.io-index" 2302source = "registry+https://github.com/rust-lang/crates.io-index"
2314checksum = "cbd1ae72adb44aab48f325a02444a5fc079349a8d804c1fc922aed3f7454c74e" 2303checksum = "c84d3526699cd55261af4b941e4e725444df67aa4f9e6a3564f18030d12672df"
2315dependencies = [ 2304dependencies = [
2316 "proc-macro2", 2305 "proc-macro2",
2317 "quote", 2306 "quote",
@@ -2390,7 +2379,7 @@ checksum = "1d0132f3e393bcb7390c60bb45769498cf4550bcb7a21d7f95c02b69f6362cdc"
2390dependencies = [ 2379dependencies = [
2391 "crc32fast", 2380 "crc32fast",
2392 "crossbeam-epoch", 2381 "crossbeam-epoch",
2393 "crossbeam-utils 0.8.0", 2382 "crossbeam-utils 0.8.1",
2394 "fs2", 2383 "fs2",
2395 "fxhash", 2384 "fxhash",
2396 "libc", 2385 "libc",
@@ -2400,9 +2389,9 @@ dependencies = [
2400 2389
2401[[package]] 2390[[package]]
2402name = "smallvec" 2391name = "smallvec"
2403version = "1.5.0" 2392version = "1.5.1"
2404source = "registry+https://github.com/rust-lang/crates.io-index" 2393source = "registry+https://github.com/rust-lang/crates.io-index"
2405checksum = "7acad6f34eb9e8a259d3283d1e8c1d34d7415943d4895f65cc73813c7396fc85" 2394checksum = "ae524f056d7d770e174287294f562e95044c68e88dec909a00d2094805db9d75"
2406 2395
2407[[package]] 2396[[package]]
2408name = "socket2" 2397name = "socket2"
@@ -2424,7 +2413,7 @@ checksum = "74c70f0235b9925cbb106c52af1a28b5ea4885a8b851e328b8562e257a389c2d"
2424dependencies = [ 2413dependencies = [
2425 "lazy_static", 2414 "lazy_static",
2426 "maplit", 2415 "maplit",
2427 "nom 6.0.0", 2416 "nom 6.0.1",
2428 "regex", 2417 "regex",
2429 "unicode_categories", 2418 "unicode_categories",
2430] 2419]
@@ -2445,7 +2434,7 @@ version = "0.4.0"
2445source = "registry+https://github.com/rust-lang/crates.io-index" 2434source = "registry+https://github.com/rust-lang/crates.io-index"
2446checksum = "5e647268dc1239dd9db2d3103fefd61151971a2214882cff9efea6f60cf50840" 2435checksum = "5e647268dc1239dd9db2d3103fefd61151971a2214882cff9efea6f60cf50840"
2447dependencies = [ 2436dependencies = [
2448 "ahash 0.5.7", 2437 "ahash 0.5.9",
2449 "atoi", 2438 "atoi",
2450 "bitflags", 2439 "bitflags",
2451 "byteorder", 2440 "byteorder",
@@ -2615,9 +2604,9 @@ checksum = "343f3f510c2915908f155e94f17220b19ccfacf2a64a2a5d8004f2c3e311e7fd"
2615 2604
2616[[package]] 2605[[package]]
2617name = "syn" 2606name = "syn"
2618version = "1.0.48" 2607version = "1.0.53"
2619source = "registry+https://github.com/rust-lang/crates.io-index" 2608source = "registry+https://github.com/rust-lang/crates.io-index"
2620checksum = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac" 2609checksum = "8833e20724c24de12bbaba5ad230ea61c3eafb05b881c7c9d3cfe8638b187e68"
2621dependencies = [ 2610dependencies = [
2622 "proc-macro2", 2611 "proc-macro2",
2623 "quote", 2612 "quote",
@@ -3104,11 +3093,11 @@ checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
3104 3093
3105[[package]] 3094[[package]]
3106name = "wasm-bindgen" 3095name = "wasm-bindgen"
3107version = "0.2.68" 3096version = "0.2.69"
3108source = "registry+https://github.com/rust-lang/crates.io-index" 3097source = "registry+https://github.com/rust-lang/crates.io-index"
3109checksum = "1ac64ead5ea5f05873d7c12b545865ca2b8d28adfc50a49b84770a3a97265d42" 3098checksum = "3cd364751395ca0f68cafb17666eee36b63077fb5ecd972bbcd74c90c4bf736e"
3110dependencies = [ 3099dependencies = [
3111 "cfg-if 0.1.10", 3100 "cfg-if 1.0.0",
3112 "serde", 3101 "serde",
3113 "serde_json", 3102 "serde_json",
3114 "wasm-bindgen-macro", 3103 "wasm-bindgen-macro",
@@ -3116,9 +3105,9 @@ dependencies = [
3116 3105
3117[[package]] 3106[[package]]
3118name = "wasm-bindgen-backend" 3107name = "wasm-bindgen-backend"
3119version = "0.2.68" 3108version = "0.2.69"
3120source = "registry+https://github.com/rust-lang/crates.io-index" 3109source = "registry+https://github.com/rust-lang/crates.io-index"
3121checksum = "f22b422e2a757c35a73774860af8e112bff612ce6cb604224e8e47641a9e4f68" 3110checksum = "1114f89ab1f4106e5b55e688b828c0ab0ea593a1ea7c094b141b14cbaaec2d62"
3122dependencies = [ 3111dependencies = [
3123 "bumpalo", 3112 "bumpalo",
3124 "lazy_static", 3113 "lazy_static",
@@ -3131,11 +3120,11 @@ dependencies = [
3131 3120
3132[[package]] 3121[[package]]
3133name = "wasm-bindgen-futures" 3122name = "wasm-bindgen-futures"
3134version = "0.4.18" 3123version = "0.4.19"
3135source = "registry+https://github.com/rust-lang/crates.io-index" 3124source = "registry+https://github.com/rust-lang/crates.io-index"
3136checksum = "b7866cab0aa01de1edf8b5d7936938a7e397ee50ce24119aef3e1eaa3b6171da" 3125checksum = "1fe9756085a84584ee9457a002b7cdfe0bfff169f45d2591d8be1345a6780e35"
3137dependencies = [ 3126dependencies = [
3138 "cfg-if 0.1.10", 3127 "cfg-if 1.0.0",
3139 "js-sys", 3128 "js-sys",
3140 "wasm-bindgen", 3129 "wasm-bindgen",
3141 "web-sys", 3130 "web-sys",
@@ -3143,9 +3132,9 @@ dependencies = [
3143 3132
3144[[package]] 3133[[package]]
3145name = "wasm-bindgen-macro" 3134name = "wasm-bindgen-macro"
3146version = "0.2.68" 3135version = "0.2.69"
3147source = "registry+https://github.com/rust-lang/crates.io-index" 3136source = "registry+https://github.com/rust-lang/crates.io-index"
3148checksum = "6b13312a745c08c469f0b292dd2fcd6411dba5f7160f593da6ef69b64e407038" 3137checksum = "7a6ac8995ead1f084a8dea1e65f194d0973800c7f571f6edd70adf06ecf77084"
3149dependencies = [ 3138dependencies = [
3150 "quote", 3139 "quote",
3151 "wasm-bindgen-macro-support", 3140 "wasm-bindgen-macro-support",
@@ -3153,9 +3142,9 @@ dependencies = [
3153 3142
3154[[package]] 3143[[package]]
3155name = "wasm-bindgen-macro-support" 3144name = "wasm-bindgen-macro-support"
3156version = "0.2.68" 3145version = "0.2.69"
3157source = "registry+https://github.com/rust-lang/crates.io-index" 3146source = "registry+https://github.com/rust-lang/crates.io-index"
3158checksum = "f249f06ef7ee334cc3b8ff031bfc11ec99d00f34d86da7498396dc1e3b1498fe" 3147checksum = "b5a48c72f299d80557c7c62e37e7225369ecc0c963964059509fbafe917c7549"
3159dependencies = [ 3148dependencies = [
3160 "proc-macro2", 3149 "proc-macro2",
3161 "quote", 3150 "quote",
@@ -3166,15 +3155,15 @@ dependencies = [
3166 3155
3167[[package]] 3156[[package]]
3168name = "wasm-bindgen-shared" 3157name = "wasm-bindgen-shared"
3169version = "0.2.68" 3158version = "0.2.69"
3170source = "registry+https://github.com/rust-lang/crates.io-index" 3159source = "registry+https://github.com/rust-lang/crates.io-index"
3171checksum = "1d649a3145108d7d3fbcde896a468d1bd636791823c9921135218ad89be08307" 3160checksum = "7e7811dd7f9398f14cc76efd356f98f03aa30419dea46aa810d71e819fc97158"
3172 3161
3173[[package]] 3162[[package]]
3174name = "wasm-bindgen-test" 3163name = "wasm-bindgen-test"
3175version = "0.3.18" 3164version = "0.3.19"
3176source = "registry+https://github.com/rust-lang/crates.io-index" 3165source = "registry+https://github.com/rust-lang/crates.io-index"
3177checksum = "34d1cdc8b98a557f24733d50a1199c4b0635e465eecba9c45b214544da197f64" 3166checksum = "0355fa0c1f9b792a09b6dcb6a8be24d51e71e6d74972f9eb4a44c4c004d24a25"
3178dependencies = [ 3167dependencies = [
3179 "console_error_panic_hook", 3168 "console_error_panic_hook",
3180 "js-sys", 3169 "js-sys",
@@ -3186,9 +3175,9 @@ dependencies = [
3186 3175
3187[[package]] 3176[[package]]
3188name = "wasm-bindgen-test-macro" 3177name = "wasm-bindgen-test-macro"
3189version = "0.3.18" 3178version = "0.3.19"
3190source = "registry+https://github.com/rust-lang/crates.io-index" 3179source = "registry+https://github.com/rust-lang/crates.io-index"
3191checksum = "e8fb9c67be7439ee8ab1b7db502a49c05e51e2835b66796c705134d9b8e1a585" 3180checksum = "27e07b46b98024c2ba2f9e83a10c2ef0515f057f2da299c1762a2017de80438b"
3192dependencies = [ 3181dependencies = [
3193 "proc-macro2", 3182 "proc-macro2",
3194 "quote", 3183 "quote",
@@ -3196,9 +3185,9 @@ dependencies = [
3196 3185
3197[[package]] 3186[[package]]
3198name = "web-sys" 3187name = "web-sys"
3199version = "0.3.45" 3188version = "0.3.46"
3200source = "registry+https://github.com/rust-lang/crates.io-index" 3189source = "registry+https://github.com/rust-lang/crates.io-index"
3201checksum = "4bf6ef87ad7ae8008e15a355ce696bed26012b7caa21605188cfd8214ab51e2d" 3190checksum = "222b1ef9334f92a21d3fb53dc3fd80f30836959a90f9274a626d7e06315ba3c3"
3202dependencies = [ 3191dependencies = [
3203 "js-sys", 3192 "js-sys",
3204 "wasm-bindgen", 3193 "wasm-bindgen",
@@ -3207,7 +3196,6 @@ dependencies = [
3207[[package]] 3196[[package]]
3208name = "weechat" 3197name = "weechat"
3209version = "0.4.0" 3198version = "0.4.0"
3210source = "git+https://github.com/poljar/rust-weechat#84da85b8aecf312f97b7a5cc627e29139a730918"
3211dependencies = [ 3199dependencies = [
3212 "async-task", 3200 "async-task",
3213 "async-trait", 3201 "async-trait",
@@ -3223,7 +3211,6 @@ dependencies = [
3223[[package]] 3211[[package]]
3224name = "weechat-macro" 3212name = "weechat-macro"
3225version = "0.4.0" 3213version = "0.4.0"
3226source = "git+https://github.com/poljar/rust-weechat#84da85b8aecf312f97b7a5cc627e29139a730918"
3227dependencies = [ 3214dependencies = [
3228 "libc", 3215 "libc",
3229 "proc-macro2", 3216 "proc-macro2",
@@ -3257,7 +3244,6 @@ dependencies = [
3257[[package]] 3244[[package]]
3258name = "weechat-sys" 3245name = "weechat-sys"
3259version = "0.4.0" 3246version = "0.4.0"
3260source = "git+https://github.com/poljar/rust-weechat#84da85b8aecf312f97b7a5cc627e29139a730918"
3261dependencies = [ 3247dependencies = [
3262 "bindgen", 3248 "bindgen",
3263 "libc", 3249 "libc",
src/room/members.rs +43 −4
@@ -112,12 +112,19 @@ impl Members {
112 112
113 fn add_nick(&self, buffer: &Buffer, member: &WeechatRoomMember) { 113 fn add_nick(&self, buffer: &Buffer, member: &WeechatRoomMember) {
114 let nick = member.nick(); 114 let nick = member.nick();
115 let color = member.color(); 115
116 let nick_settings = NickSettings::new(&nick).set_color(&color); 116 let group = buffer
117 .search_nicklist_group(member.nicklist_group_name())
118 .expect("No group found when adding member");
119
120 let nick_settings = NickSettings::new(&nick)
121 .set_color(member.color())
122 .set_prefix(member.prefix())
123 .set_prefix_color(member.prefix_color());
117 124
118 info!("Inserting nick {} for room {}", nick, buffer.short_name()); 125 info!("Inserting nick {} for room {}", nick, buffer.short_name());
119 126
120 if let Err(_) = buffer.add_nick(nick_settings) { 127 if let Err(_) = group.add_nick(nick_settings) {
121 error!( 128 error!(
122 "Error adding nick {} to room {}, already addded.", 129 "Error adding nick {} to room {}, already addded.",
123 nick, 130 nick,
@@ -189,7 +196,8 @@ impl Members {
189 "weechat.color.chat_nick_self".into() 196 "weechat.color.chat_nick_self".into()
190 } else { 197 } else {
191 Weechat::info_get("nick_color_name", user_id.as_str()) 198 Weechat::info_get("nick_color_name", user_id.as_str())
192 .expect("Couldn't get the nick color name").into() 199 .expect("Couldn't get the nick color name")
200 .into()
193 }; 201 };
194 202
195 self.room 203 self.room
@@ -342,6 +350,37 @@ impl WeechatRoomMember {
342 .unwrap_or_else(|| self.user_id().as_str()) 350 .unwrap_or_else(|| self.user_id().as_str())
343 } 351 }
344 352
353 fn nicklist_group_name(&self) -> &str {
354 match self.inner.power_level() {
355 p if p >= 100 => "000|o",
356 p if p >= 50 => "001|h",
357 p if p > 0 => "002|v",
358 _ => "999|...",
359 }
360 }
361
362 fn nicklist_prefix(&self) -> &str {
363 match self.inner.power_level() {
364 p if p >= 100 => "&",
365 p if p >= 50 => "@",
366 p if p > 0 => "+",
367 _ => " ",
368 }
369 }
370
371 fn prefix(&self) -> &str {
372 self.nicklist_prefix().trim()
373 }
374
375 fn prefix_color(&self) -> &str {
376 match self.prefix() {
377 "&" => "lightgreen",
378 "@" => "lightmagenta",
379 "+" => "yellow",
380 _ => "default",
381 }
382 }
383
345 pub fn nick_colored(&self) -> String { 384 pub fn nick_colored(&self) -> String {
346 if *self.ambiguous_nick.borrow() { 385 if *self.ambiguous_nick.borrow() {
347 // TODO this should color the parenthesis differently. 386 // TODO this should color the parenthesis differently.
src/room/mod.rs +46 −9
@@ -224,7 +224,42 @@ impl RoomHandle {
224 .upgrade() 224 .upgrade()
225 .expect("Can't upgrade newly created buffer"); 225 .expect("Can't upgrade newly created buffer");
226 226
227 buffer
228 .add_nicklist_group(
229 "000|o",
230 "weechat.color.nicklist_group",
231 true,
232 None,
233 )
234 .expect("Can't create nicklist group");
235 buffer
236 .add_nicklist_group(
237 "001|h",
238 "weechat.color.nicklist_group",
239 true,
240 None,
241 )
242 .expect("Can't create nicklist group");
243 buffer
244 .add_nicklist_group(
245 "002|v",
246 "weechat.color.nicklist_group",
247 true,
248 None,
249 )
250 .expect("Can't create nicklist group");
251 buffer
252 .add_nicklist_group(
253 "999|...",
254 "weechat.color.nicklist_group",
255 true,
256 None,
257 )
258 .expect("Can't create nicklist group");
259
227 buffer.enable_nicklist(); 260 buffer.enable_nicklist();
261 buffer.disable_nicklist_groups();
262 buffer.set_localvar("server", server_name);
228 263
229 // This is fine since we're only given the room to the buffer input and 264 // This is fine since we're only given the room to the buffer input and
230 // the callback can only run once we yield controll back to Weechat. 265 // the callback can only run once we yield controll back to Weechat.
@@ -489,11 +524,10 @@ impl MatrixRoom {
489 event: &AnySyncMessageEvent, 524 event: &AnySyncMessageEvent,
490 ) -> Option<RenderedEvent> { 525 ) -> Option<RenderedEvent> {
491 // TODO remove this expect. 526 // TODO remove this expect.
492 let sender = self 527 let sender =
493 .members 528 self.members.get(event.sender()).await.expect(
494 .get(event.sender()) 529 "Rendering a message but the sender isn't in the nicklist",
495 .await 530 );
496 .expect("Rendering a message but the sender isn't in the nicklist");
497 531
498 let send_time = event.origin_server_ts(); 532 let send_time = event.origin_server_ts();
499 self.render_message_content( 533 self.render_message_content(
@@ -523,9 +557,9 @@ impl MatrixRoom {
523 if self.config.borrow().look().local_echo() { 557 if self.config.borrow().look().local_echo() {
524 if let MessageEventContent::Text(c) = content { 558 if let MessageEventContent::Text(c) = content {
525 let sender = 559 let sender =
526 self.members.get(&self.own_user_id).await.unwrap_or_else(|| { 560 self.members.get(&self.own_user_id).await.unwrap_or_else(
527 panic!("No own member {}", self.own_user_id) 561 || panic!("No own member {}", self.own_user_id),
528 }); 562 );
529 563
530 let local_echo = c 564 let local_echo = c
531 .render_with_prefix_for_echo(&sender, uuid, &()) 565 .render_with_prefix_for_echo(&sender, uuid, &())
@@ -856,7 +890,10 @@ impl MatrixRoom {
856 } 890 }
857 } 891 }
858 892
859 async fn handle_redacted_events(&self, event: &AnyRedactedSyncMessageEvent) { 893 async fn handle_redacted_events(
894 &self,
895 event: &AnyRedactedSyncMessageEvent,
896 ) {
860 use AnyRedactedSyncMessageEvent::*; 897 use AnyRedactedSyncMessageEvent::*;
861 898
862 if let RoomMessage(e) = event { 899 if let RoomMessage(e) = event {