well, u can't put in on join becuz when u are joining u don't get the names of the nick immideatly, u need it to perform when u get 'end of /names', use raw 366
raw 366:*:listops $2
and don't forget, replace in the listops alias so # or $chan will be $1 becuz there is no # in raws