mIRC Home    About    Download    Register    News    Help

Print Thread
C
Cobi
Cobi
C
i want to /notice everyone that is in a room... Can you help?

T
Turbo_boy
Turbo_boy
T
you can typ /notice #channelname to notice everyone.

C
Cobi
Cobi
C
i ment like /notice <nick> <nick>: MSG goes here and do that for every nick in the room

T
Turbo_boy
Turbo_boy
T
than you can use (If i think what you mean) this /notice nick,nick,nick,nick .......

Joined: Mar 2003
Posts: 1,256
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,256
1. mass-stuffs are not a fun thing to do
2. if you want to send the same message to everyone - use the channel, that's what it's for!!
3. if there's a fair amount of users, noticing everyone WILL flood you off.

C
Cobi
Cobi
C
how would i loop through every one in the room?

Joined: Mar 2003
Posts: 1,256
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,256
Apparantly you didn't pay attention. Read points 2. and 3. again.

A
Alien736
Alien736
A
alias noticeveryone {
set %numNicks $nick(#channel,0)
set %x 0
while (%x != %numNicks) {
set %x %x + 1
notice $nick(#channel, %x) this is where your msg goes
}
}

that would be how to do each one individually but if you do that in a huge channel you will flood yourself and/or the server so its probably not wise to do....
anyway...why would you want to do it individually instead of noticing the whole chan???

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
not to critique you, but:

Code:
alias anotice {
  var %a = 1
  while ($nick($active, %a)) {
    /notice $ifmatch $1-
    /inc %a
  }
}


But again, noticing the whole channel (/notice #chan msg) would be the best fit way >:D

A
Alien736
Alien736
A
yea thats a smaller easier way to do it then my idea...Good idea

Joined: Mar 2003
Posts: 1,256
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,256
Quote:

why would you want to do it individually instead of noticing the whole chan

There is no valid reason at all. Except maybe to spam without some people finding out you're doing it...

K
katsklaw
katsklaw
K
/notice #channel <text>

NOTE: no guarentee that it works on all IRCd's


Link Copied to Clipboard