From 3c04345560288737e1eff8ae80820444f9d7de0d Mon Sep 17 00:00:00 2001 From: IllusionMan1212 Date: Sat, 25 Jun 2022 19:00:03 +0300 Subject: [PATCH] fix: don't send JOIN command when channel is already joined --- irc/handler/slash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/handler/slash.go b/irc/handler/slash.go index 4286e57..9a5073d 100644 --- a/irc/handler/slash.go +++ b/irc/handler/slash.go @@ -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...)