Jethro commented on a Page, Add users  -  Dec 21, 2009

Instead of using one level per text event, you only need one with if then else statement as such:> on :TEXT::#: {
if ($1 == saddo) && ($ulevel == 5) {
guser -a 4 $iif($$2 ison #,$2) 3
notice $nick $2 has been added with officer
}
if ($1 == saddg) && ($ulevel == 6) {
guser -a 5 $iif($$2 ison #,$2) 3
notice $nick $2 has been added with general
}
;so and so forth
}The $$ means a paremeter has to be specified or the script won't execute. Without an extra $, your script will be getting insufficient parameter error if the $2 is not provided.

 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.