Jethro commented on a Page, Coke script  -  Sep 10, 2011

To make it clear for you to see, here is another example:

on *:TEXT:!register:#:{
  if (!%coke. [ $+ [ $nick ] ]) {
    set %coke. $+ $nick 1
  }
  else {
    msg $chan $nick you already have an account!
  }
}

The $2 is not necessary. Simply use the !register command. When you set a dynamic variable, you don't need to include the [ ] evaluation bracket.

 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.