sry, its true that the question was not well formulated. Im no native english speaker and by the time i posted it i was too stoned to write it better, sry again. really appreciate ur help. what i'm trying to do here is a simple statistics module that logs how many times a specified user has executed a command. Hits are stored in variables like %test_nickname. Reading the top scores is done by the following script :
Code:
alias top {
  var %i = $var($1,0),%r,%n = 1,%t = $iif($prop isnum,$prop,5),%d
  while (%i) { set -u0 % $+ $($var($1,%i),2) $var($1,%i) | %r = %r $($var($1,%i),2) | dec %i }
  %r = $sorttok(%r,32,nr) | tokenize 32 %r
  while (%n <= %t) && ($($ $+ %n,2)) { %d = $addtok(%d,$(% $+ $($ $+ %n,2),2),44) | inc %n }
  return %d
}



and called using $top(var*).N where N is the number of nicks to be put in a channel. Example
Code:
 
say $chan module stats TOP $1 $top(test_*). [ $+ [ $1 ] ]


As output for $top(test_*).3 comes %test_nick1, %test_nick2, %test_nick3

What i havent figured out how to do is to take this string "%test_nick1, %test_nick2, %test_nick3" and substract all "%test_".

Is it clear now ?

Last edited by mugsi; 15/12/05 02:19 PM.