Merbo commented on a Page, ctcp version reply for help based channel  -  Mar 17, 2011

One little suggestion:

on *:JOIN:#: {
  set %.ch $chan
  CTCP $nick VERSION
}

on 1:CTCPREPLY:VERSION*:/onotice #channelname $nick is using IRC client: $1-

/onotice requires op status on the channel.
Also, you're using #channelname, which is telling the script to notice the channel #channelname.
Try your variable %.ch instead.
Easy fix:

on @*:JOIN:#: {
  set %.ch $chan
  CTCP $nick VERSION
}
on 1:CTCPREPLY:VERSION*:/onotice %.ch $nick is using IRC client: $1-

The @ sign in front of the event denotes OP status.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.