mIRC Home    About    Download    Register    News    Help

Print Thread
Status Window check #86776 14/06/04 01:50 AM
Joined: Jan 2004
Posts: 16
S
SuperMappy Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2004
Posts: 16
How can I check to see if a line that appears in the Status Window starts with an asterick.

To be more accurate: When I do a search for users on the network I am an ircop on, the lines that show users who are not in a room start with an "*". Then I would like to list those users in a specific window to show those users apart from the others who are in rooms.

Re: Status Window check #86777 14/06/04 02:26 AM
Joined: Mar 2004
Posts: 26
sailoreagle Offline
Ameglian cow
Offline
Ameglian cow
Joined: Mar 2004
Posts: 26
Code:
raw 352:*: {
  if ($2 == *) {
    if (!$window(@Users_not_in_channels)) {
      window -nk0 @Users_not_in_channels
    }
    echo @Users_not_in_channels $2 $6 $7 $3 $+ $4 : $+ $8 $9-
  }
}

raw 315:*: {
  echo @Users_not_in_channels $2-
  echo @Users_not_in_channels -
}

menu @Users_not_in_channels {
  Clear window:/clear @Users_not_in_channels
}


Unknown error. (A)bort, (R)etry, (I)nfluence with large hammer?
Re: Status Window check #86778 14/06/04 02:40 AM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
A classic wildcard will do the filtering job laugh
Code:
raw 352:[color:blue]& ? *[/color]: {
  if !$window(@Users_not_in_channels) {
    window -nk0 @Users_not_in_channels
  } 
  aline @Users_not_in_channels $2 $6 $7 $3 $+ $4 : $+ $8- 
  haltdef
}