-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Groups showing up as users, not channels, when first connecting to telegramircd #6
Comments
The only message that shows up in those 'users with groups names' is along the lines of:
Or
|
Strange. Can you run telegramircd with I have just added |
Here's that dump, hope it helps. |
Can you update to HEAD ? I have changed a lot ...
…On Feb 9, 2017 13:13, "rodneyrod" ***@***.***> wrote:
Here's that dump, hope it helps.
https://gist.github.com/rodneyrod/232dd547e0e533c6ab84472fefb62a34
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAZaQikAIUFLousxL1aWMJdthz63H5xqks5ra4GDgaJpZM4L7g0E>
.
|
Just checked out the info, if you were wondering if the issue occurs in chats and channels, it is. |
Sorry for you inconvenience... But I have 'git push -f' a lot... |
Just rm'd and cloned the repo again (git pull throwing ident errors) but still have the same issue. |
If I were you, I would log the output of |
{"event": "message", "id": "050000007aa8613f5395000000000000653848c956b2b8f8", "flags": 256, "reply_id": "050000007aa8613f4e95000000000000653848c956b2b8f8", "from": {"id": "$010000009f187b0ca76f4af5a7c4db7f", "peer_type": "user", "peer_id": ......, "print_name": "....", "flags": 1, "first_name": "...", "when": "2017-02-09 20:47:06", "last_name": "", "username": "....."}, "to": {"id": "$050000007aa8613f653848c956b2b8f8", "peer_type": "channel", "peer_id": 1063364730, "print_name": "🌊TUNA_Bot_污水群", "flags": 524289, "title": "🌊TUNA Bot 污水群", "participants_count": 0, "admins_count": 0, "kicked_count": 0}, "out": false, "unread": false, "service": false, "date": 1486701137, "text": "可怜的喵呜"} telegramircd chooses |
As I mentioned in https://github.com/MaskRay/telegramircd#known-issues, channels are not well supported by telegram-cli. There is a mysterious issue that messages do not arrive for some supergroups ( vysheng/tg#1135 ). I work around that by executing the It is unfortunate that all telegram libraries known to me are overly complex so I have to depend on telegram-cli which in my opinion is easy to hack... I once tried webogram but the logic is mingled with UI interactions and I find it difficult to understand the code..., so I abandoned it recently... |
I've checked the behaviour after the latest update, the issue persists, but I think I might know the issue. I think that the room ident is somehow being pushed as a direct message over IRC then showing in the actual room as it should be. |
Do you mean an IRC message like |
Yes, similar to that. It's a bit more like:
|
Where does this message mention the actor? |
It doesn't, it shows up in my IRC client (Quassel) as a direct message from a user, and the name of the user is just the name of the room without the '&' at the start. |
Can you connect to telegramircd with WeeChat (my favorite IRC client) and press |
The issue doesn't appear to be occurring in Weechat, every group shows up normally. I use Quassel normally so that could be why I've noticed the issue. |
The only line that I can see that would look closest to the one that I get in Quassel is this:
|
According to https://tools.ietf.org/html/rfc2812#section-3.2.4 , this raw message can be explained as &channel itself sets its topic to blahblah. For WeeChat, a channel name |
This is odd, since it was working fine in Quassel before the big refactor you did when I first submitted this issue. |
I fixed another issue. |
Will you see chats/channels shown as users if you do not use the I cannot reproduce the issue if I comment out either |
Issue looks to be resolved now, whatever you did it worked. |
I just cloned the repo again and the issue appears to have come back. Have you reverted your changes? |
No, I have not reverted my changes. I think the issue may be caused by the way Quassel handles 322 332 response codes. Can you comment out one of the two statements I mentioned before?
|
I tried to apply those comments, if I just commented out the lines you mentioned and only those lines it does not run, it says there are syntax errors and doesn't run. If I comment out the surrounding arguments it runs but throws up errors and it still has the same issue. How did you comment out those lines? It doesn't seem to like removing one of the arguments in an if statement by the looks of things. |
Checked again, I've noticed that Quassel automatically sends a /JOIN request for all channels on startup, that wouldn't have an effect on the logs would it? |
|
All good then, so what are the exact lines that I need to comment out to prevent this issue from occurring, without Python syntax errors? |
These lines #for channel in channels:
# client.reply('322 {} {} {} :{}', client.nick, channel.name,
# channel.n_members(client), channel.topic)
client.reply('323 {} :End of LIST', client.nick) or if self.topic != topic:
self.topic = topic
# for client in server.auth_clients():
# client.reply('332 {} {} :{}', client.nick, self.name, self.topic) |
First option fixed it, thank you so much for your patience. |
Quassel does not seem to support channel names with prefixes |
All good, I'll ping the Quassel team about this, hopefully get this all fixed up on that end. |
@MaskRay I pinged the Quassel devs over at #quassel at Freenode and they're looking into this issue, but they're having problems with getting the setup working. I've already tried to help them out, but if you could have a quick word over there I think that would be best. |
@rodneyrod I added self.reply('005 {} PREFIX=(ohv)@%+ CHANTYPES=!#& CHANMODES=,,,m SAFELIST :are supported by this server', self.nick)
|
After updating to the latest build, I'm getting an issue where every time I reset the daemon and connect to it for the first time again, it adds a list of my groups, but it adds them as users instead of channels, and when it starts fetching messages from those groups, it just creates new channels leaving the ones created at the initialisation and it fills up my room list with duplicates.
The text was updated successfully, but these errors were encountered: