blackvenomm666 commented on a Page, Channel Greeting Console  -  Dec 14, 2010
on *:DIALOG:Greetings:*:*: {
  if ($devent == sclick) {
    if ($did == 5) {
      var %x 1
      while (%x <= $lines(GrChannels.txt)) {
        if ($read(GrChannels.txt,%x) = $did(3)) { halt }
        inc %x
      }
      write GrChannels.txt $did(3)
      did -a $dname 4 $did(3)
    }

if you change that and add a simple # $+ you would no longer need to remember to add the # in the edit box on the dialog

on *:DIALOG:Greetings:*:*: {
  if ($devent == sclick) {
    if ($did == 5) {
      var %x 1
      while (%x <= $lines(GrChannels.txt)) {
        if ($read(GrChannels.txt,%x) = $did(3)) { halt }
        inc %x
      }
      write GrChannels.txt # $+ $did(3)
      did -a $dname 4 $did(3)
    }
 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.