mIRC Homepage
Posted By: Tomao Help modify this little script if possible - 26/02/08 06:16 PM
I'm using the script below to whois everyone in a channel. Can it be modified so that it automatically does the whois when I join the channel?

Code:
alias mwho {
  var %x = 1
  while (%x <= $nick(#,0)) {
    if ($nick(#,%x) != $me) {
      whois $nick(#,%x)
    }
    inc %x
  }
}


I have tried this command, but it won't work at all:

Code:
on me:*:JOIN:#: { mwho }


Thanks in advance.
on me:JOIN:#: { command }

on *:JOIN:#: {
if ($nick == $me) { command }
}

Here you have two examples.
Posted By: Tomao Re: Help modify this little script if possible - 26/02/08 07:20 PM
Those two examples will not trigger the script either.
Originally Posted By: Tomao
I'm using the script below to whois everyone in a channel. Can it be modified so that it automatically does the whois when I join the channel?

Code:
alias mwho {
  var %x = 1
  while (%x <= $nick(#,0)) {
    if ($nick(#,%x) != $me) {
      whois $nick(#,%x)
    }
    inc %x
  }
}


I have tried this command, but it won't work at all:

Code:
on me:*:JOIN:#: { mwho }


Thanks in advance.


dude what you want to do is

on *:join:#:{
if $nick = $me {
/mwho
}
else { /whois $nick }
}

the else will whois anyone who comes into the channel after you have joined, becarefull tho your status will be mass flooded if you are in a popular channel and have lots of joins. good luck x
© mIRC Discussion Forums