mIRC Home    About    Download    Register    News    Help

Print Thread
#79023 12/04/04 05:07 PM
Joined: Feb 2004
Posts: 33
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Feb 2004
Posts: 33
mad mad mad

This problem is REALLY bloody irritating me!

Code:
;Annoyance.Inc BlackList
;Version 0.1
;MoP

Dialog shitlist {
  Title "Annoyance.Inc Black-List"
  Size -1 -1 475 341
  Box "BlackList", 1, 335 33 133 264, 
  Edit "Nickname", 2, 343 270 73.489932885906 20, 
  Button "+", 3, 421 270 20 20,  
  List  4, 342 51 117 213, 
  Button "-", 5, 444 270 20 20, 
  Button "OK", 6, 379 305 89 23,OK
  Box "Settings", 7, 8 33 287 264, 
  Icon 8, 60 -3 370 36, ai/img/inclogo.bmp
  Check "Enable", 9, 30 61 89 13, 
  Text "Black-Listed Message:", 10, 30 99 110.738255033557 15, 
  Edit "", 11, 143 96 89.5973154362416 19, autohs
}

alias shitlistconfig {
  dialog -m shitlist shitlist
}

on 1:dialog:shitlist:init:*: {
  if (%shitliststatus.checkone == On) { 
    did -c shitlist 9 
  }  
  //didtok shitlist 4 32 %shitlist
  did -a shitlist 11 %shitlistmessage.editone
}

On 1:DIALOG:shitlist:sclick:6:{
  if ($did(shitlist,9).state == 1) { set %shitliststatus.checkone On }
  else { set %shitliststatus.checkone Off }
  set %shitlistmessage.editone $did(shitlist,11).text
}

On *:DIALOG:shitlist:sclick:3:{
  did -a shitlist 4 $did(shitlist,2) 
  set %shitlist %shitlist $didtok(shitlist,4,32)
  ignore -pcntikdw $address($did(shitlist,2),0)
}

On *:DIALOG:shitlist:sclick:5:{
  did -d shitlist 4 $did(shitlist,4).sel
  set %shitlist $didtok(shitlist,4,32) 
  ignore -pcntikdwr $address($did(shitlist,4).sel,0)
}

On 1:TEXT:*:*:{
  if ( %shitliststatus.checkone == On ) {  
    if ( $nick isin %shitlist ) {
      msg $nick %shitlistmessage.editone
    }
  }
}

on 1:JOIN:#:{
  if ( $nick == $me ) {
    who $chan
  }
}


Now, when I add a nick that exists. It is fine! But when I remove it, it deletes the selected nick from the dialog list, but it clears the whole ignore list! WTF?!?!?!?!?!?!


Adrenaline starts to flow, thrashing all around, acting like a maniac, WHIPLASH!!!
#79024 12/04/04 05:30 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
ignore -pcntikdwr $address($did(shitlist,4).sel,0) will return the line number, not the selected text.
ignore -pcntikdwr $address($did(shitlist,4).seltext,0)


New username: hixxy

Link Copied to Clipboard