Hi Geniusatwork
This looks really good. I will play with it a little to try and mod it for my script. Thanks

edit:

After some work i have modded it to my script and it does exactly what i need. But i have tried to make it work with 353 names event on joining a channel and since i dont properly understand the format of this code i have not been successful. I wonder if you could help me with that?

Code:
if ($2 == 353) {  
get usermodes of names in the #channel and add it to the hash table
}


Thanks



:Second Edit

Ok i have managed to do something that gets the modes on a join event. Please let me know if there is a more efficient way of doing this.

Code:
  if ($2 == 353) { 
    var %i = 1,%line = $remove($6-,:)
    while $gettok(%line,%i,32) { 
      var %mode = $left($v1,1)
      if ($regex(%mode,/(@|&|~|%|v)/g)) { hadd -m usermodes $+($5,_,$remove($gettok(%line,%i,32),@,&,~,%)) $replace(%mode,&,a,@,o,%,h,~,q) }
      inc %i
    } 
  }

Last edited by Solo1; 20/08/08 11:43 AM.