matrix-org / matrix-appservice-irc

Node.js IRC bridge for Matrix
Apache License 2.0
460 stars 149 forks source link

`!whois` doesn't list all channels a user is joined to #1806

Open funderscore1 opened 2 weeks ago

funderscore1 commented 2 weeks ago

This is what a conventional IRC client sees:

f_ is ~vdoSoju@00030532.user.oftc.net (Ferass El Hafidi)
f_ has joined channels #linux-cros-arm #libre-chip @#postmarketos-events #videocore #talos-workstation #help #libera @##f_ridge #freenode #rusticl #sxmo-offtopic #superd #s6 @#postmarketos-systemd @#postmarketos-release-party @#postmarketos-porting @#postmarketos-mainline @#postmarketos-lowlevel @#postmarketos-devel @#postmarketos #plan9 #pkgconf #opensourcemms #oftc #ofono #nouveau #msm8937-mainline #msm8916-mainline #moocows #ml-mainline #mirbsd #mepo #lk2nd #linux-msm #gc-linux
f_ has joined channels @#funderscore #freedesktop #framebufferphone #etnaviv #dri-devel #debian-social #asahi #alpine-offtopic #alpine-linux #alpine-devel #aarch64-laptops #xorg #chimera-linux

And this is what the appservice bot returns:

Whois info for 'f_': ~vdoSoju@00030532.user.oftc.net
                Real name: Ferass El Hafidi
                On channels: ["#linux-msm","#gc-linux","@#funderscore","#freedesktop","#framebufferphone","#etnaviv","#dri-devel","#debian-social","#asahi","#alpine-offtopic","#alpine-linux","#alpine-devel","#aarch64-laptops","#xorg","#mobian","#chimera-linux","@##matrix-irc-bans-sync-test"]

Instead, it should've returned all channels f_ joined, or maybe at least channels in common.