That will catch the second word unless the first word was also said in the same line. Was that the case? If you want to handle that case, you'll need to use a single event and check the text within.

Code:
on *:text:*:#chana:{
  if (word1 isin $1-) { msg # hello }
  if (word2 isin $1-) { msg # there }
}