mIRC Home    About    Download    Register    News    Help

Print Thread
#38985 31/07/03 12:01 AM
Joined: Mar 2003
Posts: 41
B
BORR Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 41
How can I Echo a text in all my chans?

#38986 31/07/03 12:08 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
  var %c = 1
  while ( %c <= $chan(0) ) {
    echo $chan(%c) a
    inc %c
  }

#38987 31/07/03 12:08 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Code:

alias acecho {
  var %i = 1
  while ($chan(%i)) {
    echo $color(info) -mbflirt $ifmatch $1- 
    inc %i
  }
}
alias aqecho {
  var %i = 1
  while ($query(%i)) {
    echo $color(info2) -mbflirt $ifmatch $1-
    inc %i
  }
}

/acecho This goes to all channel windows on the current connection.
/scon -at1 acecho This goes to all channel windows on all connections.

/aqecho This goes to all query windows on the current connection.
/scon -at1 aqecho This goes to all query windows on all connections.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard