-
Notifications
You must be signed in to change notification settings - Fork 62
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
msg to user from second client appears in tiny as writing to yourself #271
Comments
Thanks for reporting. I'm trying to understand how to reproduce the issue locally. I guess I should run soju and then connect to it using two clients, tiny and another one, right? Then send a message to someone (to our own nick or someone else?) from the other client (not tiny). The tab created in the other client is as expected but in tiny the tab name is wrong. Did I get this right? |
Other bugs that soju revealed previously: (both fixed a while ago) |
I'm unable to run soju locally (just created this issue) so not sure how to debug currently. I'll get back to this after I'm able to run soju locally. |
@osa1 Yes, your understanding is correct. |
Thanks for confirming. I will fix this once I'm able to run soju locally and reproduce the issue. |
Hmm, I'm a bit confused. I couldn't see any bugs involving two clients, but here's a weird behavior or potentially a bug. If I send a message to myself using
Two tabs are crated: I think this is not a bug. To show outgoing messages we use the name user specified, in this case I guess the problem is soju expects you to add suffix to nicks when sending privmsgs (e.g. |
Interestingly, you can't send a message to yourself via soju on konversation without using |
I've recorder the behavior: gif. |
If you send a message to Can you show me a client that does what you expect? |
No, I meant a different thing. In the recorded behaviour, running |
If you connect with the nick you used in irssi in the recording with tiny, and connect with the nick you used in tiny with irssi (in other words just swap the clients) and run the same test, do you get a different output? Maybe I'm an idiot but I can't tell what your nick is in irssi. It shows "testestest" at the bottom (in the input line), but when you send "hello" it sends as "shhhum", which should be the nick used by tiny not irssi. I'm confused... |
I've recorder another one, we can figure this out 🙃 : gif I have setup three clients with 2 accounts:
|
In the recording I don't understand the first command you're running in tiny. You're connected to soju and you're running |
OK here's the problem explained in my own words. soju allows multiple clients to connect to the same account and it relays messages sent by one to the others. So for example if client 1 and 2 connect to soju, and client 1 sends a message to some nick (say The problem is this relayed message causes creating a tab with the user's own nick, as if they're sending a message to themselves. This problam happens in other clients as well. So far I tried this with tiny, konversation, and hexchat. They all behaved the same: when I send a message from one of these clients with Here's a demonstration. Below Before I send a message to After I send it the other two clients (hexchat and tiny) creates a tab as if I'm messaging to myself: I can do this in any direction. For example if I send the message from tiny connected to soju then the other two clients (hexchat and konversation) create a tab looking as if I'm messaging to myself. I will check the what the exact PRIVMSG command is relayed by soju, but given that konversation and hexchat also have the same "problem" I doubt that this is really a bug in tiny. |
OK, I see what's going on here. Here's the parsed message when soju relays a message: Msg {
pfx: Some(
User {
nick: "osa1-soju",
user: "osa1-soju@127.0.0.1"
}
),
cmd: PRIVMSG {
target: User("osa1/oftc"),
msg: "blah blah",
is_notice: false,
ctcp: None
}
} So the sender is us, and target is The problem is normally (without soju) when we get a PRIVMSG from a nick that means the sender ( This is the case I commented as "not sure if this case can happen" in the source code: Lines 211 to 212 in d52029f
We need to update that code to handle the case where target of a message is not us. |
I wonder if this is also causing problems when using znc. |
Hm.
So the answer is yes, I can see the message in |
And sorry for the gif, but the original recording weighed almost 1.5GB :^( |
This should be fixed now. Thanks @shumvgolove for reporting this and being patient with me :-) |
Previous commit was not quite ready. Will push the correct version in a minute. |
Should be fixed for real now. |
This was a bit difficult to test, @shumvgolove it'd be helpful if you could confirm that this is really fixed. |
Sorry, I've been busy this two days. Just compiled new version and it indeed fixes the issue! Thank you @osa1 for working on this great IRC client! |
No problem, thanks for confirming.
Glad you liked it :-) |
tiny 0.7.0 (d52029f)
Currently I am running
soju
bouncer and this error appears only withtiny
client:irssi
orrevolution irc
, for example) touser
.user
appears inuser
tab.tiny
client shows this message touser
in tab with your nickname.The text was updated successfully, but these errors were encountered: