fix: don't send JOIN command when channel is already joined

This commit is contained in:
2022-06-25 19:00:03 +03:00
parent ec9d298e59
commit 3c04345560
+1 -1
View File
@@ -35,7 +35,7 @@ func handleSlashJoin(params []string, client *irc.Client) tea.Cmd {
if c.Name == channel {
client.ActiveChannelIndex = i
client.ActiveChannel = channel
break
return cmds.SwitchChannels
}
}
client.SendCommand(commands.JOIN, params...)