PuNkTuReD commented on a Page, AddText  -  Jan 24, 2009

heres one thatll come in handy

  var %a = $dname, %b = $devent, %c = $did
  if (%b == sclick) {
    if (%c == 2) {

and the dialogs $iif for incase you try to open the dialog once its already open

Allow Editer: dialog $iif($dialog(Allows),-v,-m) Allows Allows

u also dont need to check if $1 == !addtext so much

on *:TEXT:*:#: {
  if (!addtext == $strip($1)) && ($strip($2)) {
    var %a = write $2 $3- | .notice $nick $2.txt has been added
    if (%aol == 1) && ($nick isaop $chan) { %a }
    elseif (%ool == 2) && (%nick isop $chan) { %a }
    elseif (%hol == 3) && ($nick ishop $chan) { %a }
    elseif (%evl == 4) { %a }
    elseif (%offl == 5) { .notice $nick Addtext is off }
  }
  elseif (!view == $strip($1)) && ($strip($2)) { play $chan $2 }
  else {  }
}
 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.