Lindrian commented on a Page, ChanModePro  -  May 21, 2007

Sounds great. Also thought of, what about removing the radio\'s, and make the check boxes select/unselect depending on the modes?

alias load_mode {
var %x = $chan($active).mode
if (MODE isincs %x) { actions }
if (MODE2 isincs %x) { actions }
}

or

alias load_mode {
var %a = 1, %b = $chan($active).mode, %c = 30
while %a <= %b {
did -a CMP $iif($gettok(CMP,%c),1,32) isincs %b,-c,-u) <id>
inc %b
}
inc %c
}

Im not sure if the alias with the loop is correct, i assumed that the first check is used from 30. (The id for the topic lock)

When the .state is 0, it returns the mode -, elseif the state is 1, it returns +.

When you press ok, the selected modes will be set.

Much better then nusing radios for add/remove ;).

 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.