Jethro commented on a Page, Channel modes Dialog  -  Jan 30, 2010

You don't have to make an extra if statement to check if a mode exists or not, but to use an else condition as shown below. You do the same for the rest.

if (m isincs $chan(%channel).mode) { mode %channel -m | did -fu test 38 }
else { mode %channel +m | did -fu test 38 }
}
 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.