Hello everyone,

So I'm trying to teach myself mIRC scripting with what I can find online. Currently, I am following this tutorial. However I am finding myself stuck on a simple on:TEXT command.

Right now, this is what I have in my remote section:
Quote:
#Greet off
on 1:JOIN:#:{
.notice $nick Hello and welcome to $chan !!
}
#Greet End

on +100:TEXT:Greet on:?:{
.enable #Greet | /msg $nick The auto-greet is now active
}
on +100:TEXT:Greet off:?:{
.disable #Greet | /msg $nick The auto-greet is now inactive
}
on *:TEXT:Hi:#:{
/say Hello $nick
}


The problem I am having is with the last part when someone says "Hi". I want the bot to say hello back, but not as a private message or notice. I am currently getting an error saying "* You are not on a channel (line 14, script1.ini)".

Can anyone identify what my problem is? is it a simple thing that I am missing?

I really appreciate the help!