napa182 commented on a Page, Swear pro with specified channels dialog  -  Sep 11, 2008

the problem with setting channels like the way you have it set is say i set 5 channels and the next day someone wants me to add their channel to run the script in. i would have to retype all the channels i had in before along with the new channel im adding.
you can fix that by useing tokens.

so instead of this line

on *:dialog:chanp:sclick:3:{
  set %chanprot $did(2).text | echo -a Added %chanprot To Favorites.
}

you can do this

on *:dialog:chanp:sclick:3:{
  set %chanprot $addtok(%chanprot,$did(2).text,44) | noop $input(Channel $did(2).text Added,uio,Added)
}

and instead of useing

ON @*:TEXT:*:%chanprot: {
  IF ($nick isop #) return
  if ($nick isvo #) return 

i would do

ON @*:TEXT:*:#: {
 if ($istok(%chanprot,$chan,44) && $nick(#,$nick,r)) { 
 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.