mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline OP
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
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.

Last edited by Tomao; 26/02/08 06:17 PM.
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
on me:JOIN:#: { command }

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

Here you have two examples.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline OP
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Those two examples will not trigger the script either.

Joined: Feb 2008
Posts: 4
C
Self-satisified door
Offline
Self-satisified door
C
Joined: Feb 2008
Posts: 4
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


Link Copied to Clipboard