Skip to content

Commit

Permalink
Ignore special channels (&users and &messages)
Browse files Browse the repository at this point in the history
  • Loading branch information
hloeung committed Nov 19, 2022
1 parent dd789a0 commit fe01fe5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mm-go-irckit/server_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ func CmdJoin(s Server, u *User, msg *irc.Message) error {
// you can only join existing channels
var err error

if channelName == "&users" || channelName == "&messages" { //nolint:goconst
continue
}

channelID, topic, err := u.br.Join(channelName)
if err != nil {
logger.Errorf("Cannot join channel %s, id %s, err: %v", channelName, channelID, err)
Expand Down

0 comments on commit fe01fe5

Please sign in to comment.