mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 03:53:08 +00:00
client: use topic command in topic change
A user on IRC reported a bug where the topic would change to ":hello" when the topic was modified to "hello" via the channel topic edit field. The reason is that irc-framework also sanitizes /RAW commands and hence our manually escaped trailing param gets another ":" (which I'm not exactly sure it should be doing... /raw means raw in my world, but oh well). We do have a proper /topic command a user could be using, so the fix is to just do that in the input box as well.
This commit is contained in:
parent
e2ddabe032
commit
718db3ae88
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ export default defineComponent({
|
|||
|
||||
if (props.channel.topic !== newTopic) {
|
||||
const target = props.channel.id;
|
||||
const text = `/raw TOPIC ${props.channel.name} :${newTopic}`;
|
||||
const text = `/topic ${newTopic}`;
|
||||
socket.emit("input", {target, text});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue