Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit af91b44

Browse files
committed
nick list fix
1 parent 889d584 commit af91b44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

komanda/ui/handlers.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ func BindHandlers() {
5959

6060
if c, _, has := Server.HasChannel(line.Text()); has {
6161
Server.Exec(c.Name, func(g *gocui.Gui, v *gocui.View, s *client.Server) error {
62-
c.AddNick(line.Nick)
62+
if line.Nick != Server.Client.Me().Nick {
63+
c.AddNick(line.Nick)
64+
}
6365
fmt.Fprintf(v, "[%s] %s [%s@%s] has joined %s\n", color.GreenString("+JOIN"), line.Nick, line.Ident, line.Host, c.Name)
6466
return nil
6567
})

0 commit comments

Comments
 (0)