mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
fix: don't send JOIN command when channel is already joined
This commit is contained in:
@@ -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...)
|
||||
|
||||
Reference in New Issue
Block a user