mIRC Homepage
Posted By: SuperMappy Status Window check - 14/06/04 01:50 AM
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.
Posted By: sailoreagle Re: Status Window check - 14/06/04 02:26 AM
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
}
Posted By: Online Re: Status Window check - 14/06/04 02:40 AM
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
}
© mIRC Discussion Forums