If the comparison was necessary, then you would be correct, although some people have been known to get correct results using the single = rather than the double ==. However, as I noted, since the channel name is specified in the ON JOIN event, that if statement is irrelevant.